Bonjour, j'ai deux tables avec 5 champs communs qui forme une clé.
Je dois supprimer les champs d'une table, qui sont contenu dans les deux tables.
Ce matin, j'ai pas les yeux en face des trous et je bloc :S
J'ai deux requete :
Ca passe pas..... et
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 delete from tempdb..CalyonOpeTitre where (INST_NUM,PF_COD,INST_PRICE,INST_QTY,XACT_TYP) in (select INST_NUM,PF_COD,INST_PRICE,INST_QTY,XACT_TYP from ID_XACT) ou delete from tempdb..CalyonOpeTitre where (INST_NUM,PF_COD,INST_PRICE,INST_QTY,XACT_TYP) = (select INST_NUM,PF_COD,INST_PRICE,INST_QTY,XACT_TYP from ID_XACT)
Ca passe pas non plus :S
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14 delete from tempdb..CalyonOpeTitre as ope where ope.INST_NUM = ID_XACT.INST_NUM and ope.PF_COD = ID_XACT.PF_COD and ope.INST_PRICE = ID_XACT.INST_PRICE and ope.INST_QTY = ID_XACT.INST_QTY and ope.XACT_TYP = ID_XACT.XACT_TYP and ope.XACT_DAT = ID_XACT.XACT_DAT
Je suis sous sybase
version :Adaptive Server Enterprise/12.0.0.8/P/EBF 11874 ESD2/Sun_svr4/OS 5.7/2058/64bit/FBO/Thu May 20 09:12:03 2004
Merci
Partager