注册 | 登录 |
地方论坛门户及新闻和人才网址大全

sql server中查找特定类别的列的写法

时间:2021-07-21人气:-


复制代码 代码如下:


select a.name, o.name AS TableName, o.type, a.id, o.object_id, o.schema_id
FROM sys.syscolumns AS a INNER JOIN sys.systypes AS b ON a.xtype = b.xtype
AND b.name = 'nvarchar'
INNER JOIN
sys.objects AS o ON a.id = o.object_id
WHERE (o.type = 'u')
AND (o.schema_id = 1)


上篇:N字符在Sql Server字段类型中的重要性概述

下篇:将备份的SQLServer数据库转换为SQLite数据库操作...