473,387 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

query to get list of tables

How to list all the tables created in oracle.
how to create views on tables and wat r they for...im very new to oracle...pls help me..
Feb 9 '07 #1
6 158174
Try this to see all the tables created:

Expand|Select|Wrap|Line Numbers
  1.  
  2. SQL>select * from tab;
  3.  
  4.  
Feb 10 '07 #2
yadav
2
Try this to see all the tables created:

SQL>select * from tab;

Expand|Select|Wrap|Line Numbers
  1.  
  2. sql>>select tname from tab:
  3.  
  4.  
this will give u the list of tables
view:
views are used to combine 2 or more tables data into one table so as to avoid
joining conditions for the repeatedly used data.



cheers
yadav
Feb 12 '07 #3
sql>>select tname from tab:
this will give u the list of tables
view:
views are used to combine 2 or more tables data into one table so as to avoid
joining conditions for the repeatedly used data.



cheers
yadav
Thanks for ur reply yadav....

wat is the difference from using
Expand|Select|Wrap|Line Numbers
  1.  
  2. select * from tab (select tname from tab)
  3.  
  4. --and
  5.  
  6. select * from user_tables
  7.  
wen would their usage is appropriate...
wat is the previledges offered by a dba in such scenarios to a normal user.
Feb 12 '07 #4
How to list all the tables created in oracle.
how to create views on tables and wat r they for...im very new to oracle...pls help me..
simple way to find all tables created by user
Expand|Select|Wrap|Line Numbers
  1. SELECT*FROM TAB;
  2.  
Feb 14 '07 #5
sowmy
1
How to list all the tables created in oracle.
how to create views on tables and wat r they for...im very new to oracle...pls help me..
Expand|Select|Wrap|Line Numbers
  1.  
  2. SELECT * FROM user_tables;
  3.  
  4. --or
  5.  
  6. SELECT table_name FROM user_tables;
  7.  
  8.  
Jan 4 '08 #6
amitpatel66
2,367 Expert 2GB
Hi All,

Please make sure you make use of [code] tags when ever you post any source code in this forum.

MODERATOR
Jan 4 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ralph Guzman | last post by:
TASK: I have to generate a report with all categories, subcategories and products in database. PROBLEM: I want to write one query that will return: 1. category 2. subcategory: determined by...
5
by: Jim | last post by:
This SQL query has been driving me nuts, I am sure there is a simple way of doing this but I am afraid it is eluding me at the moment. I have two tables: Table1 X Y -----------...
9
by: Peter Moscatt | last post by:
Is there a SQL command I can issue which will list all the TABLES within a database ? Pete ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9'...
3
by: maricel | last post by:
Is there a way to list (using db2 command or catalogs) to list hierarchy of table parent & child relationship: 1) A list that shows which table should be deleted first,second,third... 2) A list...
2
by: Gabriel | last post by:
Hi, The following will generate a list of all tables and queries froma db: SELECT MSysObjects.Type, MSysObjects.Name, MSysObjects.DateCreate, MSysObjects.DateUpdate FROM MSysObjects WHERE...
1
by: mike_dba | last post by:
I am trying to determine which tables in my database are being joined and by what columns. I then came up with a query against EXPLAIN_PREDICATE that returns rows similar to the following: ...
2
by: Danny | last post by:
Hello, We imported a bunch of tables from a database and realized that the primary keys weren't copied to the destination db. In order to re- create the keys, we need to know which tables have...
1
dlite922
by: dlite922 | last post by:
hey fellas (and ladies) I need help with making a query. My tables are: (Simplified) case: id violatorID number
2
by: wevans | last post by:
I have 3 tables, Customer, Offsite Service and service. I need to create a sales report/query based on the results of the user input, which is a date range. I've got it working great with two of the...
9
by: BhanteU | last post by:
I have written code to close all open reports, or close all forms (except a couple), using code similar to the following: While Application.Reports.Count > 0 DoCmd.Close acReport,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.