I have two tables in MySQL:
Table1:
cname
a
b
f
Table2:
character | account
a | 1
b | 2
c | 3
d | 4
e | 5
f | 6
g | 7
I want to select all accounts from two tables which cname = character
I've tried this:
SELECT account FROM table1,table2 WHERE cname = character
But it returns empty. I'm sure I'm missing something simple...
Any help would be appreciated.
characteris a reserved word in MySQL. So this query won't work at all, hence why no results are returned.