![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
SELECT * , SUBSTRING( `Reference` , ( LOCATE( "08", `Reference` ) ) AS TRACK FROM `work` WHERE `Reference` LIKE "%08-%" This is giving me a syntax error. What's wrong? |
#3
| |||
| |||
|
|
SELECT * , SUBSTRING( `Reference` , ( LOCATE( "08", `Reference` ) ) AS TRACK FROM `work` WHERE `Reference` LIKE "%08-%" This is giving me a syntax error. What's wrong? |
#4
| |||
| |||
|
|
Derek Turner: SELECT * , SUBSTRING( `Reference` , ( LOCATE( "08", `Reference` ) ) AS TRACK FROM `work` WHERE `Reference` LIKE "%08-%" This is giving me a syntax error. What's wrong? The number of parentheses: 3x'(' and 2x')' |

#5
| |||
| |||
|
|
On Mon, 07 Feb 2011 13:34:16 +0000, Erick T. Barkhuis wrote: Derek Turner: SELECT * , SUBSTRING( `Reference` , ( LOCATE( "08", `Reference` ) ) AS TRACK FROM `work` WHERE `Reference` LIKE "%08-%" This is giving me a syntax error. What's wrong? The number of parentheses: 3x'(' and 2x')' Thanks for the quick response, I looked and looked but couldn't see it ![]() And now I've got the SUBSTRING syntax the right way round it even does what I want it to do! |
![]() |
| Thread Tools | |
| Display Modes | |
| |