-
1st March 2010, 09:56 PM
#11
Senior Member
Diamond Hubber
Hi
I have SQL table with a customer table in SQL server , having columns (name, lastname)
the last name contains values like (o'corner, o'brian) how would i search for these records iusingT-SQL
Select * from customers
where lastname like 'O'coner%'
it does not work cause of the single quote bewteen O and C... any way round it?
Raiks??
Om Namaste astu Bhagavan Vishveshvaraya Mahadevaya Triambakaya Tripurantakaya Trikalagni kalaya kalagnirudraya Neelakanthaya Mrutyunjayaya Sarveshvaraya Sadashivaya Shriman Mahadevaya Namah Om Namah Shivaye Om Om Namah Shivaye Om Om Namah Shivaye
-
1st March 2010 09:56 PM
# ADS
Circuit advertisement
Bookmarks