Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Db2 Sql

Status
Not open for further replies.

PatelRam

Programmer
Aug 20, 2003
87
US
I am new to db2. I have couple of questions about db2 sql:

1) How to select first 100 records from the Query set.

For eg. Oracle : select * from table_name where rownum < 100
Db2 : ???


2) In Oracle We have spool command to create output txt file for query result

for eg. Oracle : spool c:\filename.txt
select * from table_name
spool off
Db2 : ???


3) How do I know List of tables in Schema

For eg. Oracle : select * from cat;
db2 : ???

Thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top