六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 223|回复: 0

sybase 查看表结构语句

[复制链接]

升级  19.33%

19

主题

19

主题

19

主题

秀才

Rank: 2

积分
79
 楼主| 发表于 2013-1-30 00:12:05 | 显示全部楼层 |阅读模式
select a.colid as id,b.name as tab_name,a.name as col_name,c.name as type,a.length as all_length,a.prec as length,a.scale,case isnull(a.status,0) when 0 then 'NOT NULL' ELSE 'NULL' END AS isnull
from syscolumns a,sysobjects b,systypes c
where a.id=b.id and a.usertype=c.usertype and b.name = @tablename
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表