日期:2014-05-17 浏览次数:20746 次
UPDATE A SET
ATIME=(SELECT A.ATIME
------解决方案--------------------
' '
------解决方案--------------------
B.BTIME FROM A , B , C WHERE A.AID=C.AID AND B.BID=C.BID)
, ANAME=(SELECT A.ANAME
------解决方案--------------------
' '
------解决方案--------------------
B.BNAME FROM A , B , C WHERE A.AID=C.AID AND B.BID=C.BID)
WHERE AID IN (SELECT A.AID FROM A,B,C WHERE A.AID=C.AID AND B.BID=C.BID)
merge into a
using (
select * from b ,c where b.bid = c.bid
) d
on (a.aid = d.aid )
when matched then
update set a.atime = trunc(b.btime(日期部分),'yyyy-mm-dd')
------解决方案--------------------
trunc(a.atime(时间部分),'hh:mi:ss')