테이블 test 이름이 들어간 테이블 조회
SELECT * FROM information_schema.TABLES WHERE table_name LIKE CONCAT('%','test','%');
테이블 test 이름이 들어간 테이블 수
SELECT count(*) FROM information_schema.TABLES WHERE table_name LIKE CONCAT('%','test','%');
test이름이 들어간 테이블의 컬럼 조회
SELECT * FROM information_schema.columns WHERE table_name LIKE CONCAT('%','test','%');
test 이름이 들어간 테이블의 컬럼수 조회
SELECT COUNT(*) FROM information_schema.columns WHERE table_name LIKE CONCAT('%','test','%');
'DBMS > MySQL' 카테고리의 다른 글
[MySQL] mysql 외부 접속시 connection locked 현상 (Unblock with 'mysqladmin flush-hosts (0) | 2025.02.17 |
---|---|
[MySQL] rownum 순번 매기기 (0) | 2025.02.17 |
[MySQL] 세자리마다 콤마찍기 (0) | 2025.02.17 |
[MySQL] 데이터베이스 용량 확인 / 버전확인 (0) | 2025.02.17 |
[MySQL] 임의로 숫자 리스트 만들기 (예제, 년도 리스트 출력) (0) | 2025.02.17 |