betweenGo

Listing All Tables

by on Mar.28, 2008, under MySQL, Oracle

With MySQL listing all the tables in a database is easy enough.

mysql> show tables;

With Oracle it’s a little less straight-forward.

> select table_name from user_tables;

OR

> select * from user_objects where object_type = 'TABLE'; 

OR

> select table_name from tabs;

OR

> select table_name from all_all_tables;


Share

Related posts:

  1. Describing Tables and Constraints in Oracle
  2. HOWTO View Tables and Indexes in an Oracle Database
  3. Retrieving the Source from the Database
  4. Best Practices for Creating Tables
  5. Problem connecting to MySQL 4.1 via PHP

:,

Leave a Reply

 

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!