Wednesday, 28 January 2009

(), round brackets, in Mysql

(T1, ...) RIGHT JOIN (T2,...) ON P(T1,...,T2,...) =
(T2, ...) LEFT JOIN (T1,...) ON P(T1,...,T2,...)

http://dev.mysql.com/doc/refman/5.0/en/outer-join-simplification.html


===========


mysql> SELECT cds.artist, cds.title, genres.genre
-> FROM cds, genres
-> WHERE (cds.genreID = genres.genreID);

No comments:

My photo
London, United Kingdom
twitter.com/zhengxin

Facebook & Twitter