PL/SQL 修改表文件

错误:select t from jp_fullnote t where t.hf_serialid = 'HF2015071017490000';   点击editdata (小锁图标)  这时候是不能修改的,还会提示

   按照这种写法,会出现如下错误提示:“these query results are not updateable…………”

正确的做法:

   select t.*, rowid from jp_fullnote t where t.hf_serialid = 'HF2015071017490000';

   注意,SQL语句多行时,结尾要加分号;

这是侯,再点击小锁图标,更改就好,修改后,点击commit 图标,或者按 F10  提交。

 

========在后来的一次使用中,发现了奇葩问题,用上面的语句,会使机器卡死。。。

解决办法,只需要用这句话:select t.*, t.rowid from jp_fullnote t where t.hf_serialid = 'HF2015071017490000' 

    删除select * from jp_fullnote for update;  这句就好

posted @ 2015-07-12 14:25  沙中世界  阅读(152)  评论(0)    收藏  举报