在sql添加的声明变量。
你需要指定一个变量声明的类型,
能够使用set和select对变量进行赋值,
在sql语句中就能够使用@local_variable来调用变量
比如:declare @id int
declare @id int = 3
set @id=2
select id
select @id = column_id from table where column_user = 'ABC'
在sql添加的声明变量。
你需要指定一个变量声明的类型,
能够使用set和select对变量进行赋值,
在sql语句中就能够使用@local_variable来调用变量
比如:declare @id int
declare @id int = 3
set @id=2
select id
select @id = column_id from table where column_user = 'ABC'
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M