记得sysbase的update可以 update t1 set t1.col1=t2.col1 from t1,t2 where t1.col3=t2.col3 and t2.col2<>t1.col2 这样写可以直接关联表指定条件。 而oracle只能这样 update t1 set t1.col1 = (select col1 from t2 where t1.col3=t2.col3 and t2.col2<>t1.col2) 如果是单一表update就没什么区别了。 commit 不管是sysbase还是oracle都一样,都是commit后才更新到DB. 以上是我的一点理解,请高手指正。
update table set(c1,c2,c3,c4....) values( v1,v2,v3,v4...) where...
或
update table set c1=v1,c2=v2,c3=v3... where.....
update都要commit才更新到DB.sybase 不了解.
update t1 set t1.col1=t2.col1 from t1,t2 where t1.col3=t2.col3 and t2.col2<>t1.col2 这样写可以直接关联表指定条件。
而oracle只能这样
update t1 set t1.col1 = (select col1 from t2 where t1.col3=t2.col3 and t2.col2<>t1.col2)
如果是单一表update就没什么区别了。
commit 不管是sysbase还是oracle都一样,都是commit后才更新到DB.
以上是我的一点理解,请高手指正。
这样出题,只会造成应聘都肓目的学习.什么都想去学.