What keyword does an SQL SELECT statement use for a string
search?

Answers were Sorted based on User's Feedback



What keyword does an SQL SELECT statement use for a string search?..

Answer / sunil1405

SELECT FNAME WHERE FNAME LIKE 'S%';

Is This Answer Correct ?    6 Yes 0 No

What keyword does an SQL SELECT statement use for a string search?..

Answer / kirtish srivastava

Like is used with where clause to search,update, and delete a record using wild cards.

Example:-
To Search;-

select * from Employee where Name like 'a%'

Note;- Search all records whose employee name is stared from a character.

To Update:-

update Employee set Name='amit' where Name like 'a%'

update all records with name amit whose employee name is started from a character.

To Delete:-

delete from Employee where Name like 'a%'

Delete all records whose employee name is started from a Character.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More DB2 Interview Questions

What is the picture clause of the null indicator variable?

6 Answers  


What is the syntax for creating a table in the db2 database?

0 Answers  


What are bind parameters in db2?

0 Answers  


What does DSNDB07 database do?

2 Answers  


What is the result of open cursor statement?

0 Answers  


what are the bind parameters?

5 Answers   IBM,


What do you mean by cursor?

0 Answers  


What is the information associated with sysibm.syslinks table?

0 Answers  


How to resolve -407 sql code in DB2?

9 Answers   Cap Gemini,


What if we fail to give values in columns declared as NOT NULL ?

3 Answers   Cap Gemini,


Is it possible to update a primary key value? If not, what is the error code given? If yes, can more than 1 primary key column be updated at a time?

8 Answers  


What is db2 catalog database?

0 Answers  


Categories