Hi there,
I am trying to query two tables at once using simple table aliases but I am not getting results nor errors.
It is almost as if the query is run but matching 0 rows.
Heres the SQL:-
SELECT * FROM mmClients c, mmNotes n WHERE c.town LIKE '%hove%';
This is a generated from a php script where there it is likely to be more conditions in the where clause.
I have run the SQL through my php script and also through phpMyAdmin and the same thing happens...nothing.
I tried removing the aliases and then running it on only one table and records were returned (I am using test data where i know certain values exists ... ).
Is it possible that aliases are disabled ?
I also tried using AS to show the aliases (as per mySql documentation) but the same happened.
Any tips would be great....
[afterthought]
do you have to lock tables to use aliases, even for a read query
[/afterthought]
Many thanks
JEz
I am trying to query two tables at once using simple table aliases but I am not getting results nor errors.
It is almost as if the query is run but matching 0 rows.
Heres the SQL:-
SELECT * FROM mmClients c, mmNotes n WHERE c.town LIKE '%hove%';
This is a generated from a php script where there it is likely to be more conditions in the where clause.
I have run the SQL through my php script and also through phpMyAdmin and the same thing happens...nothing.
I tried removing the aliases and then running it on only one table and records were returned (I am using test data where i know certain values exists ... ).
Is it possible that aliases are disabled ?
I also tried using AS to show the aliases (as per mySql documentation) but the same happened.
Any tips would be great....
[afterthought]
do you have to lock tables to use aliases, even for a read query
[/afterthought]
Many thanks
JEz