What keyword does an SQL SELECT statement use for a string
search?
Answer Posted / 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 View All Answers
What is ibm db2 used for?
How to check sequence on a table in db2?
What is plan in cobol db2?
How does coalesce work?
How do I start db2 in windows?
In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?
How to connect to db2 database from windows command line?
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?
What is the difference between spufi and qmf?
Name the lockable units in DB2?
What do you mean by rollback?
Why db2 is called db2?
What is meant by union and union all?
What is the advantage in De-normalizing tables in DB2?
What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?