Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to check the table is empty or not?

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


Please Help Members By Posting Answers For Below Questions

What do you mean by commit and rollback?

1030


How to execute stored procedures?

1123


what is diffrence b/w file-aid tool and file-aid utility???

4886


What is bind in db2?

1032


Which isolation level provides maximum concurrency?

1150


In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?

1097


What is the difference between dbm cfg and db cfg file in db2 ?

1528


What is the physical storage length of the data types: date, time, timestamp in the db2 database?

1150


What is db2 stogroup?

1154


Define data page.

1056


How do I create a view in db2?

1015


What is copy pending and check pending in db2?

994


What is database alias db2?

1119


What is check constraint. Explain with example.

1093


What is phantom read in db2?

1145