討論串[SQL ] 刪除特定條件的語法問題
共 5 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者aleck945 (總是不知所措)時間17年前 (2008/08/22 14:17), 編輯資訊
0
0
0
內容預覽:
試試以下:. DELETE FROM newmed WHERE (he_code,eff_date) IN. (select he_code,eff_date from newmed. minus. select he_code,max(eff_date) from newmed group by

推噓2(2推 0噓 0→)留言2則,0人參與, 最新作者matchyou (這樣也要罵=.=)時間17年前 (2008/08/21 16:40), 編輯資訊
0
0
0
內容預覽:
我剛剛有照你的 table column名稱建了一個. 基本上應該對 你看看可不可以. delete from newmed where (rtrim(he_code) + '-' + rtrim(eff_date)). not in. (select rtrim(he_code) + '-' +

推噓2(2推 0噓 0→)留言2則,0人參與, 最新作者erho (ptt訪客)時間17年前 (2008/08/21 09:22), 編輯資訊
0
0
0
內容預覽:
DELETE FROM newmed WHERE eff_date IN (SELECT eff_date FROM (SELECT he_code,. ---------. 這樣得話,滿足這個eff_date條件. 都會被刪除. eff_date FROM newmed MINUS SELECT
(還有81個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者zusocfc (CFC)時間17年前 (2008/08/20 20:20), 編輯資訊
0
0
0
內容預覽:
DELETE FROM newmed WHERE eff_date IN (SELECT eff_date FROM (SELECT he_code,. eff_date FROM newmed MINUS SELECT he_code, max(eff_date) FROM newmed GROU

推噓2(2推 0噓 1→)留言3則,0人參與, 最新作者erho (ptt訪客)時間17年前 (2008/08/20 17:40), 編輯資訊
0
0
0
內容預覽:
我的資料庫是oracle. 我要刪掉滿足下列語法的所有資料. select he_code,eff_date from newmed. minus. select he_code,max(eff_date) from newmed group by he_code;. 我用. delete * fr
(還有186個字)
首頁
上一頁
1
下一頁
尾頁