update infostaff set staffid =
(select userid from userlist where staffname = username)
(select userid from userlist where staffname = username)
解决方案 »
- Oracle初学者的问题!!!!!
- 求教各位老大帮我看下这个存储过程的错误如何避免,叩谢!
- 请各位帮帮我看一个存储过程
- System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.
- 如何检索所有字段中的内容?
- 请问如何优化Oracle9i?两个存储过程嵌套执行很慢.
- 高分找oracle8
- 跪求8.1.5升级到8.1.7的较详细的步骤!
- 只有一个dbf文件,如何恢复数据库,请大虾帮忙!!!!
- 求多主复制的技术资料,最好又实例的。
- 请教一个在delete语句中inner join的问题
- 关于查询出来的数据小计的问题(按时间每周小计)
(select id2 from tab2 b where a.nam1=b.name2);
前提是没有重名的,有重名的更新就不准了可以+个ronum=1
when matched then
update set t1.staffid=t2.userid
when matched then
update set t1.staffid=t2.useridplsql中调试,光标在on的位置提示无效的表名
when matched then
update set t1.staffid=t2.useridplsql中调试,光标在on的位置提示无效的表名merge into infostaff t1 using userlist t2 on(t1.username=t2.staffname)when matched thenupdate set t1.staffid=t2.userid
when matched then
update set t1.staffid=t2.useridplsql中调试,光标在on的位置提示无效的表名merge into infostaff t1 using userlist t2 on(t1.username=t2.staffname)
when matched then
update set t1.staffid=t2.userid