http://dev.mysql.com/doc/refman/4.1/en/ix01.html
http://dev.mysql.com/doc/refman/4.1/en/comparison-operators.html
http://dev.mysql.com/doc/refman/4.1/en/comparison-operators.html
MySQL Functions
concat
concatenate two columnsSELECT concat ( 'my' , 'sql' )
coalesce
return first non null columnSELECT coalesce ( col1 , col2 )
conv
convert from one base to another (hex2dec)SELECT conv(mid(hexcolour,1,2),16,10) as r, conv(mid(hexcolour,3,2),16,10) as g, conv(mid(hexcolour,5,2),16,10) as b FROM hexcolours
convert
use convert to convert character setsselect CONVERT( _utf8 'asdfasdfasdf' using latin1 )
interval
Use "interval" to create a month rangeselect <date> between '20070701' and '20070701' + interval 1 month - interval 1 day
replace
replace all instances of old with newSELECT REPLACE( col, old, new )
locate
locate stringSELECT locate( search, string, start )
substring
get substringSELECT substring( col, start, length )
REFERRERS
MySqlDesignQuery