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 does reorg do in db2?

991


Explain about mirror activator disk mirroring?

968


What is dbrm? What it contains? When it will be created?

1003


How do you stop a db2 database in linux?

969


What is database manager in db2?

974


What is rebind in db2?

1008


What parameters are used to control the free space in DB2?

1019


What is performance tuning db2?

1018


What is the physical storage length of the data types date, time, and timestamp?

1053


what is diffrence b/w file-aid tool and file-aid utility???

4832


What is cursor with hold option in db2?

1024


How can the firstname and the lastname from the emp table be concatenated to generate complete names?

1240


What is check constraint. Explain with example.

1052


What is ibm db2 connect?

946


What do you mean by rollback?

945