作者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
1F:推 erho:这样在oracle显示语法有误 ORA-01722: invalid number 08/22 14:43
2F:推 abcf:我用SQ server=.=...oracle不熟 抱歉 08/22 20:01