sqlserver进阶必知-用户自定义表数据类型

9.1.3 用户自定义表数据类型

-- Self cultivation of programmers

--第九章课程 
-- 自定义数据类型
create type  course_tabletype as table(
cno char(4) not null,
cname char(16) not null,
credit int null,
tno char(6) null


)

declare @tb course_tabletype 
insert into @tb select * from course 
select * from @tb 

效果 

猜你喜欢

转载自blog.csdn.net/chenggong9527/article/details/123957544
今日推荐