| 发表于:2007-03-27 17:18:305楼 得分:2 |
select table_catalog as [database], table_schema as owner, table_name as tablename, column_name as columnname, ordinal_position as ordinalposition, column_default as defaultsetting, is_nullable as isnullable, data_type as datatype, character_maximum_length as maxlength, datetime_precision as dateprecision,columnproperty(object_id(table_name), column_name, 'isidentity ') as isidentity from information_schema.columns where (table_name = '表名 ') | | |
|