Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Generally if I want to select the names starting with c I
need to use c%
But how could I code to select the data which contains %
as a part of data.

Answer Posted / mdvasanth86

Anand is right.


SELECT * FROM table_name WHERE column_name LIKE 'C!%'
ESCAPE'!';


If you want to use % or _ as part of your like clause,
you must have an escape character before each occurrence of
% or _ and define what the escape character is like above.

So, an escape character before the % or _ will make it part
of the string rather than a wildcard character(S).


HTH

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is utility for parm lib

2309


What os does db2 run on?

925


Can there be more than one cursor open for any program?

1123


What is the picture clause of null indicator variable?

1081


Explain the contents that are a part of dclgen.

1034


What does reorg do in db2?

984


Is db2 free?

1036


What is meant by dclgen?

1060


What is buffer pool and list some of them?

981


How is a typical db2 batch pgm executed?

1109


If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?

1092


What is db2 look?

970


What do you mean by between and in? Is between inclusive of specified range values?

1038


can we view the access paths created by dbrm ? how ? thx

6973


What is explain in db2?

959