如何从一表中获取其增量字段? select * from syscolumns where autoval is not null 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select '表名', name from syscolumns where id=object_id('表名') and autoval is not null select name as 增量列名 from syscolumns where id=object_id('表名') and autoval is not null select [name] from syscolumns where id=object_id('表名') and autoval is not null select [name] from syscolumns where id=object_id('表名') and status & 0x80 = 0x80 status tinyint 用于描述列或参数属性的位图: 0x08 = 列允许空值。0x10 = 当添加 varchar 或 varbinary 列时,ANSI 填充生效。保留 varchar 列的尾随空格,保留 varbinary 列的尾随零。0x40 = 参数为 OUTPUT 参数。0x80 = 列为标识列。 autoval varbinary(255) 仅限内部使用。 所以一般还是不要用这个做判断的好. TO;zjcxc(邹建)那还有其它的获取方法吗? 将一些格式为平面文件的数据如何导入到SQL2005或2K 急求一sql语句!在线等! 求一条SQL语句,本人新手 求15位身份证升18位解决办法 小论备份与恢复 怎样用存储过程实现获得所查询信息的所在表名和列名? 求助, 怎样在SQL server 7.0 上实现级联删除??? 为什么我无法在win2000下安装sql server 个人版? 在SQL Server中如何限定查询得条数? 我想做数据库,不知有没有南京的朋友愿不愿意帮忙,如蒙赐教,不胜感激!!!! 如何把SQL触发器和数据库从一台服务器上一起下载放到另一台服务器上 select 合并列 在线等
select '表名', name from syscolumns where id=object_id('表名') and autoval is not null
where id=object_id('表名') and autoval is not null
where id=object_id('表名') and autoval is not null
where id=object_id('表名') and status & 0x80 = 0x80
0x08 = 列允许空值。
0x10 = 当添加 varchar 或 varbinary 列时,ANSI 填充生效。保留 varchar 列的尾随空格,保留 varbinary 列的尾随零。
0x40 = 参数为 OUTPUT 参数。
0x80 = 列为标识列。
那还有其它的获取方法吗?