请问一个存储过程里变量赋值问题! 这句的时候负值select fa , fb ,@parm = fc from tableA where id=@id 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select fa , fb ,@parm = fc from tableA where id=@id 确保select fa , fb ,@parm = fc from tableA where id=@id 返回唯一记录的时候是可行的! declare @cloth_isInRetail int , @suitCloth_id int select suit_id , @suitCloth_id = cloth_id , suit_size , suit_img , suit_desc , suit_price , @cloth_isInRetail = cloth_isInRetailfrom FZ_MakeSuitwhere suit_id = ( select suit_id from FZ_MakeSuitOrderMap where order_id = 6) 谢谢各位的回复! 不过我按照各位的指导,写成上面那样,系统就有错误提示:服务器: 消息 141,级别 15,状态 1,行 14向变量赋值的 SELECT 语句不能与数据检索操作结合使用。为什么不可以呢?他为什么说这两个不能结合使用?我的语句又有什么问题呢?? 你那个SELECT 中不可以同时有赋值又有结果哦``` @suitCloth_id = cloth_id , suit_size , 这样不可以的``` 赋值和检索不能在同一个select操作中同时存在 求一ms sql语句,在线等~~~~~~~~~~~~~ 帮忙看一下,一条查询语句 求ASP+SQL的网站设计与实现。谁有网站的后台数据库? 一个sql求助,我郁闷一天了!! 这样的变量赋值能实现吗 如何利用MFC存取图片到SQL server2000 sql server 2000的端口椒1433,那麼它的instace的端口是多少,以及怎麼知道端口是多少? 征求用Powerdesign做的小实例!!! 视图查询!!!急急! 紧急求救:如何在两个数据库中更新数据? ftp问题(没发错地方,这里人气旺) 请问这样怎么写呢? 一个分类的用sql写. 谢谢
@suitCloth_id int
select suit_id ,
@suitCloth_id = cloth_id ,
suit_size ,
suit_img ,
suit_desc ,
suit_price ,
@cloth_isInRetail = cloth_isInRetail
from
FZ_MakeSuit
where
suit_id = ( select suit_id from FZ_MakeSuitOrderMap where order_id = 6)
谢谢各位的回复! 不过我按照各位的指导,写成上面那样,系统就有错误提示:
服务器: 消息 141,级别 15,状态 1,行 14
向变量赋值的 SELECT 语句不能与数据检索操作结合使用。
为什么不可以呢?他为什么说这两个不能结合使用?我的语句又有什么问题呢??
suit_size , 这样不可以的```