select id from sysobjects where name='titles'
select [name],* from syscolumns where id=(select id from sysobjects where name='titles') order by colid
sqlserver查询系统表和系统表的字段的sql语句
本文提供了一段SQL Server中的查询语句,用于从系统表sysobjects中选择名为'titles'的记录,并进一步获取该表的所有字段信息。此方法有助于理解如何在SQL Server中操作元数据。
select id from sysobjects where name='titles'
select [name],* from syscolumns where id=(select id from sysobjects where name='titles') order by colid
sqlserver查询系统表和系统表的字段的sql语句
3469
1838

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