joined:July 20, 2005
can somebody tell me what m i doing wrong in this MySQL statement.
i want to compare '/' at the start and end of the string in my Link field which can have any chracters from 'a-z' and '-' and it cant have '/' again in the middle of string, just at start and end. i ve tried the following statement and other variations of it but to no avail.
SELECT Name, Link FROM Table WHERE Link REGEXP '^/[a-z-]/$'