> proff/access/db
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1783429 to server version: [b]4.0.24[/b]-log
mysql> create table t1 (id int not null primary key);
Query OK, 0 rows affected (0.03 sec)
mysql> insert into t1 values (1);
Query OK, 1 row affected (0.01 sec)
mysql> insert into t1 values (2);
Query OK, 1 row affected (0.00 sec)
mysql> create table t2 (fid int not null primary key);
Query OK, 0 rows affected (0.03 sec)
mysql> insert into t2 values (1);
Query OK, 1 row affected (0.01 sec)
mysql> select * from t1 inner join t2 on t2.fid=t1.id;
+----+-----+
| id | fid |
+----+-----+
| 1 | 1 |
+----+-----+
1 row in set (0.01 sec)
mysql> select * from t1 where t1.id IN (select fid from t2);
ERROR 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 * from t2)' at line 1