获取数据库中用户表所有列和列的数据类型
SELECTOBJECT_NAME(c.OBJECT_ID) AS[Table_Name], c.[name]AS[Column_Name] ,t.[name]AS[Data_Type_Name]FROM sys.columns AS c
LEFTJOIN SYSOBJECTS AS s ON (c.[object_id]= s.[id])
LEFTJOIN sys.types AS t ON (c.[user_type_id]=t.[user_type_id])
WHERE s.xtype ="U"
Source Code
以上是 获取数据库中用户表所有列和列的数据类型 的全部内容, 来源链接: utcz.com/z/531956.html