select * from sysobjects where name='noPriKey'

select * from sqlTest.dbo.personInfo

--查询所有的用户表
select * from sysobjects where xtype='U'and name<>'dtproperties' order by name

--查询所有的列
select* from sys.all_columns

--查询所有的定义类型
select * from sys.systypes

select t.name ,c.*from sys.all_columns c,sysobjects s, sys.systypes t
where s.xtype='U' and s.id=c.object_id
and c.user_type_id=t.xtype
order by c.object_id

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
猜你喜欢
  • 2022-12-23
  • 2021-10-07
  • 2022-02-17
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-08-26
相关资源
相似解决方案