mssqlserver查询数据库表结构语句查询指定表结构的表名、列名、类型、说明、字段长度
sql语句怎么查询两张表的数据select
o.name as tableName,c.name as columnName,t.name as columnType,p.value as columnDescription,c.prec from sysobjects o left join syscolumns c on o.id=c.id
left ded_properties p on p.major_id=c.id and p.minor_lid and p.name='MS_Description' left join systypes t on c.xusertype=t.xusertype
pe='u'
and o.name='WordFiles'
较为详细的查看表结构:
sp_columns 'WordFiles'
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论