티스토리 뷰

반응형

- 테이블 내 데이터 타입 조회

SELECT table_name, column_name, DATA_TYPE, COLUMN_TYPE , column_comment
FROM information_schema.columns
WHERE table_schema = '스키마명';

SELECT table_name, column_name, DATA_TYPE, COLUMN_TYPE , column_comment
FROM information_schema.columns
WHERE table_schema = '스키마명'
  and DATA_TYPE in ('tinyint', 'TINYINT');

- Procedure, Function 내의 문자조회

SELECT ROUTINE_SCHEMA, ROUTINE_NAME
FROM information_schema.routines
WHERE LOWER(ROUTINE_DEFINITION) LIKE '%검색어%';

 

 

끗2354235124

반응형