-
Notifications
You must be signed in to change notification settings - Fork 0
Oracle
RaspPywriter edited this page Jun 28, 2020
·
14 revisions
Returning a specified number of rows.
Example of ROWNUM
SELECT * from WHERE ROWNUM <= 5;
You can't use ROWNUM = 5 due to how Oracle processes the request, however, if you only want one row returned you can use ROWNUM = 1.
Listing a table's columns select column_name, data_type, column_id from all_tab_columns where owner = 'SMEAGOL' and table_name = 'EMP'