55问答网
所有问题
SQL中的TABLE类型的变量怎么用?
用于什么情况?
declare @x table
select @x=*from a
print @x
为什么会错呢?谢谢!
举报该问题
推荐答案 2009-06-19
declare @x table(col int)
insert into @x values(1)
select * from @x
这就相当于一张临时表
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://55.wendadaohang.com/zd/I4FFecGI4.html
相似回答
大家正在搜
相关问题
oracle中表名能否用变量?怎么用
oracle数据库sql语句中TABLE()的用法
SQL如何用语句更改字段的数据类型?
SQL数据库中布尔值用什么数据类型
sql,在一个已经有内容的表里,怎样修改列的数据类型
SQL如何建立Date类型的字段
数据库中怎样用T-SQL语句建立表?并且在表中输入数据和设置...
如何使用SQL语句修改表的结构,比如添加字段,修改字段的类型