作者matchyou (這樣也要罵=.=)
看板Database
標題Re: [SQL ] 刪除特定條件的語法問題
時間Thu Aug 21 16:40:24 2008
我剛剛有照你的 table column名稱建了一個
基本上應該對 你看看可不可以
delete from newmed where (rtrim(he_code) + '-' + rtrim(eff_date))
not in
(select rtrim(he_code) + '-' + rtrim(max(eff_date)) from newmed
group by he_code)
試試看吧^.^
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.218.10.19
推 erho:這樣在oracle顯示語法有誤 ORA-01722: invalid number 08/22 14:43
推 abcf:我用SQ server=.=...oracle不熟 抱歉 08/22 20:01