I have two tables country
and state
:
country
-----------
cid
countrycode
countryname
state
-------
sid
cid (fk)
statecode
statename
I am writing a join as:
SELECT s.sid,
s.statename,
c.countryname
FROM state s,
country c
WHERE s.cid = (+) c.cid
AND c.id = 1
The above query gives a syntax error. Does MySQL not accept '+' symbol?