in column y record
abc.v
abc.s
xyz.j
abc.h
i wan only abc columns
how to retrieve thi records
Answer Posted / madhu t
select Y from <table> where substr(y,1,3) = 'abc'
we can achieve this by using substring function in sql.
SUBSTR(column-name,starting-position,length)
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
What is a buffer in memory?
How do I change the column size in db2?
What is the use of dclgen in db2?
How to execute stored procedure in db2 command editor?
Is the primary key a clustered index?
Define sqlca.
How do I optimize a query in db2?
Name the various locking levels available?
What is the use of db2 optimizer?
What is dclgen (declaration generator)?
What is table space in db2?
On which levels locks can be applied?
What do you mean by between and in? Is between inclusive of specified range values?
What is db2 instance?
What is the difference between using bind () and rebind () methods of naming class?