---查询数据库所有表名
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‘
时间: 2024-11-05 00:16:14