Click here to Skip to main content
15,890,946 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good Evening Sir...! I have one problem with retrieving data from database using g Like operation like: Krishna's Kumar's Rk's This type of values are not allowed in
SQL
select * from emp where Orgname like'%'s'

in this query not allow two single Quotation but my requirement is retrieve
"%'s "
how can i retrieve these this type of values please help me sir.
Posted
Updated 19-Oct-11 1:11am
v2

You have to use '' instead of '.
SQL
select * from emp where Orgname like '%''s'
 
Share this answer
 
v4
Comments
DGKumar 19-Oct-11 7:49am    
Thank you...
Use two single quotes next to each other:
SQL
select * from emp where Orgname like'%''s'
 
Share this answer
 
Comments
DGKumar 19-Oct-11 7:49am    
Thank you...
try this

SQL
select * from emp where Orgname like'%''s'
 
Share this answer
 
v2
Comments
DGKumar 19-Oct-11 7:49am    
Thank you...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900