--定义一个数据类型
create type userlist_tabletype as table(
	id int not null default 0,
	name varchar(50) not null default ''
)
go

--定义存储过程
create proc dbo.pr_usetabletype
	@t userlist_tabletype readonly
as
	select * from @t
go

--测试
declare @tb userlist_tabletype
insert into @tb (id,name) values (1,'henry'),(2,'lily'),(3,'jason')
exec pr_usetabletype @tb

  

相关文章:

  • 2022-12-23
  • 2021-12-04
  • 2021-08-21
  • 2021-12-31
  • 2021-10-04
  • 2022-12-23
  • 2021-09-21
猜你喜欢
  • 2021-09-16
  • 2022-12-23
  • 2021-12-15
  • 2021-09-20
  • 2022-12-23
  • 2021-09-29
  • 2022-02-17
相关资源
相似解决方案