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 are the bind parameters ibm db2?
How to create db2 table in mainframe?
What is a bind card?
How to connect to db2 database from windows command line?
Mention a credible reason why select* is never given preference in an sql program that has been embedded.
What are the benefits of using the db2 database?
What does reorg do in db2?
What is null in db2?
What do you mean by cursor?
What is an instance in db2?
What is the maximum length of sqlca?
List some fields from sqlca?
What is innodb buffer pool?
What are bind parameters in db2?
When reorg is used?