RE: [Info-ingres] Having problem with simple "NOT IN" query
- From: "Paul White" <pwhite@xxxxxxxxxxxxxxxxx>
- Date: Sat, 20 Aug 2005 21:41:38 +1000
Hi Manny,
Looks like you are running MySQL.
If you were running ingres you'd have no probs.
Check your paths, check your news group
Paul
* create table tab_a (id int);
* create table tab_b (id int);
* insert into tab_a values (1);
* insert into tab_a values (2);
* insert into tab_a values (3);
* insert into tab_a values (4);
* insert into tab_b values (4);
* insert into tab_b values (5);
* select id from tab_a
* where id not in
* (select id from tab_b); \g
Executing . . .
???????????????
?id ?
???????????????
? 1?
? 2?
? 3?
???????????????
(3 rows)
-----Original Message-----
From: info-ingres-admin@xxxxxxxxxxxxxxx
[mailto:info-ingres-admin@xxxxxxxxxxxxxxx]On Behalf Of
mantas44@xxxxxxxxxxx
Sent: Saturday, 20 August 2005 9:23 PM
To: info-ingres@xxxxxxxxxxxxxxx
Subject: [Info-ingres] Having problem with simple "NOT IN" query
Hello all,
I have two tables
tab_a id(int)
tab_b id(int)
and I try the following select which returns an error:
SELECT id from tab_a
where id NOT IN
(select id from tab_b);
#1064 - You have an error in your SQL syntax. Check the manual that
corresponds to your MySQL server version for the right syntax to use
near 'select id from tab_b) LIMIT 0, 30' at line 3
Please advise.
Cheers,
Manny
_______________________________________________
Info-ingres mailing list
Info-ingres@xxxxxxxxxxxxxxx
http://mailman.cariboulake.com/mailman/listinfo.py/info-ingres
.
- Prev by Date: Having problem with simple "NOT IN" query
- Next by Date: Re: [Info-ingres] Having problem with simple "NOT IN" query
- Previous by thread: Having problem with simple "NOT IN" query
- Next by thread: using the pythondbi to call stored procedures taking i1's i2's or long varchars as parameters...
- Index(es):
Relevant Pages
|
|