Posted by Terry Olsen on 11/28/37 11:59
I have an SQL database with rows that have parens in the data.
If I run a select statement such as:
SELECT SongName
FROM Songs
WHERE SongName = 'John Jacob (Jingleheimer Schmidt)'
It returns zero rows. This also:
SELECT SongName
FROM Songs
WHERE SongName LIKE '%John Jacob (Jingleheimer Schmidt)%'
returns zero rows.
If I change it to this:
SELECT SongName
FROM Songs
WHERE SongName LIKE '%John Jacob%'
Then I get the row returned.
Is there a way to use the first query example above and return the row?
I'm guessing it has something to do with the parenthesis...
*** Sent via Developersdex http://www.developersdex.com ***
Navigation:
[Reply to this message]
|