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 / prachi

SELECT NAME FROM EMP WHERE NAME LIKE 'C%';

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a Foreign Key?

654


What is a db2 collection?

603


How many types of page locks can be held in db2?

589


Define db2 and its databases?

618


What is syscat in db2?

574






What is the physical storage length of timestamp data type?

640


Which isolation level provides maximum concurrency?

660


What is check constraint in db2?

603


by using cursors , we can access particular records from the table based on some condition, i want to delete those selected records, how can we write a query for this in the program?

7504


What is an instance in db2?

561


What is innodb buffer pool?

560


What is rebind in db2?

573


before altering a table is it necessary to lock ? if lock what is it ? how to do ? ifi want to lock a table what is that command ?

1710


What is the use of db2?

586


What is the maximum size of a char data type in db2?

584