[SQLServer]查看表结构


sp_columns itm_item

sp_help itm_item

sp_helpconstraint itm_item

select * from INFORMATION_SCHEMA.COLUMNS where table_name = 'itm_item'

select * from sysconstraints where id=object_id('itm_item') and (status &1)=1




你可能感兴趣的:(sql)