db2 => select * from miaomiao.test1 where a='x'
A B C
- ---------- ----------- x y 100 1 条记录已选择。
db2 => select * from (update miaomiao.test1 set c=110 where a='x')
SQL0104N 在 "rom (update miaomiao" 后面找到异常标记 "."。预期标记可能包括:" SQLSTATE=42601 db2 => select * from old table(update miaomiao.test1 set c=110 where a='x')
A B C
- ---------- ----------- x y 100 1 条记录已选择。
db2 => select * from miaomiao.test1 where a='x'
A B C
- ---------- ----------- x y 110 1 条记录已选择。
db2 => select * from new table(update miaomiao.test1 set c=120 where a='x')
A B C
- ---------- ----------- x y 120 1 条记录已选择。
db2 => select * from miaomiao.test1 where a='x'
A B C
- ---------- ----------- x y 120 1 条记录已选择。
db2 => select * from final table(update miaomiao.test1 set c=130 where a='x')
A B C
- ---------- ----------- x y 130 1 条记录已选择。
db2 => select * from miaomiao.test1 where a='x' A B C
- ---------- ----------- x y 130 1 条记录已选择。 |
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/298599/viewspace-666810/,如需转载,请注明出处,否则将追究法律责任。