22,209
社区成员
发帖
与我相关
我的任务
分享
CREATE ASSEMBLY utf8string
FROM '\\ComputerName\utf8string\utf8string.dll' ;
GO
CREATE TYPE Utf8String
EXTERNAL NAME utf8string.[Microsoft.Samples.SqlServer.utf8string] ;
GO
---用户定义数据类型
create type postcode
from varchar(6) null --创建用户定义数据类型
go
select * from information_schema.domains ----获取用户定义数据类型信息
select * from information_schema.column_domain_usage ---查看用户定义数据类型的使用情况
drop type postcode ---删除用户定义数据类型