如何在更新查询中有输出 [英] how to have output in update query

查看:69
本文介绍了如何在更新查询中有输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
我需要获取一个更新一些参数的查询,并在asp.net 4 visual studio 2010中获得结果

  UPDATE 消息
 SET  is_read =  1 
位置(is_read =  0 )
输出混乱



这是查询,但Visual Studio显示错误!!!!!!!!!!

总是说您收到的错误永远不会说"Visual Studio显示错误"

您正在错误地使用OUTPUT子句,请参见 OUTPUT子句(Transact-SQL) [ ^ ]和UPDATE message SET is_read = 1 WHERE (is_read = 0) OUTPUT mess



this is the query but visual studio show error!!!

解决方案

Always say what error you recieve never ever say "visual studio show error"

You''re using the OUTPUT clause wrongly see
OUTPUT Clause (Transact-SQL)[^] and UPDATE (Transact-SQL)[^] there are even examples of how to use it.


这篇关于如何在更新查询中有输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆