首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

update没where语句不执行

2013-09-28 
update没有where语句不执行在plsql中执行update tb_cons_pqamttsett.cons_name1 执行后没有反应 执行up

update没有where语句不执行
在plsql中执行update tb_cons_pqamt  t  set  t.cons_name='1' 执行后没有反应 执行update tb_cons_pqamt  t  set  t.cons_name='1'  where 1=1 就成功更新,困惑住我了,有谁知道是怎么回事吗。以前没有遇到过啊。 plsql oracle
[解决办法]

引用:
在plsql中执行update tb_cons_pqamt  t  set  t.cons_name='1' 执行后没有反应 执行update tb_cons_pqamt  t  set  t.cons_name='1'  where 1=1 就成功更新,困惑住我了,有谁知道是怎么回事吗。以前没有遇到过啊。


你看一下更新返回的结果集对不对,你首先select * from tb_cons_pqamt where cons_name='1' 看能否查询到记录,如果能查询到肯定就能更新了

热点排行
Bad Request.