본문 바로가기

DB 모음/MySQL

MYSQL 테이블명 조회 찾기

728x90
반응형
SMALL

 


-- 특정 데이터베이스의 테이블 조회
SELECT table_name 
FROM information_schema.tables 
WHERE table_schema = '데이터베이스_이름';



-- 특정단어를 포함하는 테이블 명 조회
SELECT table_name FROM information_schema.tables 
WHERE table_schema = DATABASE() AND table_name LIKE '%ws_te%';

 


-- 특정 데이터베이스의 테이블 조회
SELECT table_name 
FROM information_schema.tables 
WHERE table_schema = '데이터베이스_이름';

-- 특정단어를 포함하는 테이블 명 조회
SELECT table_name FROM information_schema.tables 
WHERE table_schema = DATABASE() AND table_name LIKE '%ws_te%';

 

 

728x90
반응형
LIST