select name from syscolumns
where id = object_id('test') and columnproperty( id,name,'isidentity')=1
where id = object_id('test') and columnproperty( id,name,'isidentity')=1
本文介绍了一个SQL查询示例,用于从名为'test'的表中选取标识字段。此查询利用了SQL Server的系统表和函数来确定表中的标识字段。

被折叠的 条评论
为什么被折叠?