设为首页 加入收藏

TOP

数据表字段属性查询
2015-11-21 01:49:02 来源: 作者: 【 】 浏览:0
Tags:数据 属性 查询

---查询数据库所有表名
select id,name from sysobjects where xtype='u' order by name
---查询表的所有字段属性
select * from syscolumns where id=object_id(N'FMS_PayApply')
---查询表字段名,类型,长度,默认值,是否允许为空
select column_name,data_type,CHARACTER_MAXIMUM_LENGTH,
COLUMN_DEFAULT ,IS_NULLABLE
from information_schema.columns
where table_name = 'WF_WORKFLOW_STEP'

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Employees Earning More Than The.. 下一篇mongodb学习(Document数据操作)

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: