Answer Posted / sriram
EXEC-SQL
SELECT 1
INTO :X
FROM TAB1
END-EXEC
X is defined as s9(4) comp value zeroes
So, if there is a row in the table (i.e. the table is not
empty), 1 gets moved to variable X.
Did not have resources to run the query and validate ,
Please let me know if I am wrong
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is release/acquire in bind?
What is a db2 table?
What is bind package and plan in db2?
What is dbrm? When it will be created?
Is schema the same as database?
Explain dclgen.
what is a corelated subquerry?
What is collection in db2 bind?
What parameters are used to control the free space in DB2?
What is the use of db2?
List some fields from sqlca?
What is temporal table in db2?
What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?
How do I copy a table in db2?
How can the firstname and the lastname from the emp table be concatenated to generate complete names?