Re: [SQL ] 刪除特定條件的語法問題
我剛剛有照你的 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
推
08/22 14:43, , 1F
08/22 14:43, 1F
推
08/22 20:01, , 2F
08/22 20:01, 2F
討論串 (同標題文章)
完整討論串 (本文為第 4 之 5 篇):