6 个解决方案
#1
select c.* from syscolumns c, sysobjects o
where o.id =c.id and o.type='U' and o.name='表名'
where o.id =c.id and o.type='U' and o.name='表名'
#2
好像不行,在sybase中不支持
#3
不支持报什么错?
#4
上述语句在isqlw里面能执行啊,赞
#5
#6
syscolumns表中有字段不允许访问,改成这个吧!
select c.id, c.colid, c.name, c.usertype, c.length from syscolumns c, sysobjects o
where o.id =c.id and o.type='U' and o.name='表名'
select c.id, c.colid, c.name, c.usertype, c.length from syscolumns c, sysobjects o
where o.id =c.id and o.type='U' and o.name='表名'
#1
select c.* from syscolumns c, sysobjects o
where o.id =c.id and o.type='U' and o.name='表名'
where o.id =c.id and o.type='U' and o.name='表名'
#2
好像不行,在sybase中不支持
#3
不支持报什么错?
#4
上述语句在isqlw里面能执行啊,赞
#5
#6
syscolumns表中有字段不允许访问,改成这个吧!
select c.id, c.colid, c.name, c.usertype, c.length from syscolumns c, sysobjects o
where o.id =c.id and o.type='U' and o.name='表名'
select c.id, c.colid, c.name, c.usertype, c.length from syscolumns c, sysobjects o
where o.id =c.id and o.type='U' and o.name='表名'