Différence entre '=' et 'not <>'
Bonjour,
Voilà, j'ai un problème depuis 2 jours.
La première requete ne marche pas (erreur : no current record for fetch operation) :
Code:
1 2 3 4 5
|
SELECT *
FROM table1 LEFT OUTER JOIN table2 ON table1.champ1 = table2.champ_cle1,
table3 LEFT OUTER JOIN table4 ON table3.champ1 = table4.champ_cle1
WHERE ( table1.champ2 = table3.champ1 ) |
La seconde requete marche super:
Code:
1 2 3 4 5
|
SELECT *
FROM table1 LEFT OUTER JOIN table2 ON table1.champ1 = table2.champ_cle1,
table3 LEFT OUTER JOIN table4 ON table3.champ1 = table4.champ_cle1
WHERE not ( table1.champ2 <> table3.champ1 ) |
LA DIFFERENCE EST DANS LE WHERE :
'=' DEVIENT 'not <>'
Merci de votre réponse si vous en avez une ou du moins une piste.