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