473,750 Members | 2,596 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

query to get list of tables

10 New Member
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 158340
palani12kumar
60 New Member
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 New Member
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
richardson
10 New Member
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
bhartiakhilesh
1 New Member
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 New Member
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 Recognized Expert Top Contributor
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
3258
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 parent_id 3. products in each category or subcategory.
5
1540
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 ----------- ----------- 1 12 2 41
9
130342
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' the postmaster
3
19833
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 that shows which table should loaded first, second,third... Your help would be highly appreciated. maricel.
2
1887
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 (((MSysObjects.Type)=1 Or (MSysObjects.Type)=5) AND ((Left(,4))="MSys")) ORDER BY MSysObjects.Type, MSysObjects.DateCreate;
1
1509
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: (Q1.PERIOD_KEY = Q2.PERIOD_KEY) My problem is tying this Q1 & Q2 back to a tablename? Does anyone know how this may be done? Or perhaps a suggestion on how better to obtain this information.
2
9164
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 them. Is there a command that I can use (on the source db) to find out which tables contain primary keys? The db has hundreds of tables and I'd rather not go through each one to see which has a primary key. Also, for future reference, is there a...
1
4898
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
1835
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 tables, but not the third. Here's the code for the working one I have now. SELECT ., ., First(.Date) AS , Sum(.Price) AS Price FROM INNER JOIN ON .ID = .ID GROUP BY ., ., . HAVING (((First(.Date))>= And (First(.Date))<)) ORDER BY .; Now...
9
19185
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, Application.Reports(0).Name, acSavePrompt Wend I can’t figure out how to do the same thing with the half-dozen or so small query windows (tables) that may remain open when I finish a particular task. I have to click the close button on the Title bar of each...
0
9001
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9396
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9342
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8263
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4716
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3323
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2226
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.