我写的是
update student
set student.name = student1.name,
student.id = student1.id
from student,student1
where student.int_id = student1.int_id;
这个句子在sql server 2000下完全通过,
就是在oracle通不过
提示原因是sql命令未正确结束
请问高手是什么原因?
或者还有其他方法?
update student
set student.name = student1.name,
student.id = student1.id
from student,student1
where student.int_id = student1.int_id;
这个句子在sql server 2000下完全通过,
就是在oracle通不过
提示原因是sql命令未正确结束
请问高手是什么原因?
或者还有其他方法?
解决方案 »
- 求指教
- 请教oracle update 语句中SUBSTR()
- SqlLoad 如何导入日期类型?
- 多个关键字匹配求助
- 如何通过网络导出另一个数据库中的数据
- 怎么得到Oracle的序列(CurrVar和NextVar)?
- 头痛:一秒钟有5000多条记录(500个字段左右)要入库,我该怎么办?
- 请教高手:pl/sql中能否包含创建视图语句?!在sqlplus出现的语句是否都能放在pl/sql中
- 在那儿能更快下载oracle 9i的linux版本?我在oracle的网站上下载很慢!
- 一致性读
- 如何利用7的客户端连接8
- database configuration assistant not work?help help
update 语句是一句更新一个记录。insert 就可以批量
insert into tab1 select * from tab2....
update tablename t1 set (tablecolumn1,tablecolumn2,tablecolumn3)=(select tabcolumn1,tabcolumn2,tabcolumn3 from table2 t2 where t2.id=1) where t1.id in (1,2,3);
I didn't mean that the update statement is a batch execute statement.