|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
||||
|
||||
|
syntax to list tables
I'm having a moment. I openned pl\sql and I need to list all the tables...what is the syntax??
tia
__________________
Curious by Nature, Linux by Choice |
|
#2
|
||||
|
||||
|
I tried ::
select * from TAB; and got no rows returned... ![]() |
|
#3
|
|||
|
|||
|
Code:
select table_name from all_tables where ownder='DBA_FROG'; -or - select * from tab; If you get no rows returned it means you have no tables that you own. Since I have NO clue what you're doing -- in development it's quite common to have the tables owned by a special user that was created for the application. If you know the tables are owned by somebody else and you know the owner name - substitute that for DBA_FROG above. Otherwise, either the dba or you manged to drop all tables you have. |
|
#4
|
||||
|
||||
|
Thanks,
I realized why I was getting a null return when you explained about the table ownership. I'm on a non-sysdba acct for this quick lookup, so I don't own anything. thanks, |
|
#5
|
|||
|
|||
|
do a select * from cat to see all the objects you can see
|
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > syntax to list tables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|