SELECT SUBSTRING(FieldName,0,20) FROM Table
I try on phpmyadmin and returned empty value. How i use this function ?
The SUBSTR start index is 1 in mysql. So, you should change your code to:
SELECT SUBSTR(FieldName,1,20) FROM TABLE;
Notice that SUBSTR() is a synonym for SUBSTRING() so they can be used interchangeably.
You should also checkout the documentation for SUBSTRING()
countCode became country_Code, jesus christ =)
SUBSTRINGdev.mysql.com/doc/refman/5.0/en/…