Apr 18, 2016

MS SQL에서 테이블의 컬럼 정보 보기


--테이블 목록보기
--1)
sp_tables
--2)
select * from information_schema.tables

--컬럼 상세내용보기
--1)
sp_columns VendTable
--2)
select * from information_schema.columns where table_name = 'VendTable'
--3)
select column_name, data_type, character_maximum_length, column_default
 from information_schema.columns where table_name = 'VendTable'

No comments:

Post a Comment