(주)누리웨어

화상연동/Web,APP 구축및서비스/LMS/평생교육/학점은행/기업교육/연수관리/설문구축/

9월, 2024

MsSQL DB 스키마 이용 쿼리

1) alter문 생성 SELECT co.table_name ,co.column_name ,co.data_type ,CONCAT(‘alter table ‘ , co.table_name, ‘ CHANGE COLUMN ‘ , co.column_name , ‘ ‘ , co.column_name , ‘ VARCHAR(50) NULL DEFAULT NULL COMMENT “최초 등록자 정보”; ‘) AS ddl FROM information_schema.columns co INNER JOIN information_schema.tables tb ON co.table_schema = tb.table_schema AND co.table_name = tb.table_name AND tb.table_schema = ‘goe_v1_db’ […]