得到表中的所有列信息(包含数据类型名)

来源:互联网 发布:快牙软件 编辑:程序博客网 时间:2024/04/30 05:14
取表的字段信息:
 SELECT syscolumns.name,systypes.name,syscolumns.isnullable,syscolumns.length

  FROM syscolumns, systypes WHERE syscolumns.xusertype = systypes.xusertype AND syscolumns.id = object_id('product')



ProductId    int    0(not null)    4(length)
catalogId    int    1    4
CategoryId    int    1    4
ProductName    varchar    0    100


原创粉丝点击