ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Databases  >>  SQL PLSQL
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
How to perform a loop through all tables in pl/sql?
 Question Submitted By :: Suji
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to perform a loop through all tables in pl/sql?
Answer
# 1
We can use user_tables view of data dictionary.
create a cursor based on query
  select * from  user_tables and then use use this cursor 
in for loop
 
Is This Answer Correct ?    0 Yes 0 No
Rahul Name
 
  Re: How to perform a loop through all tables in pl/sql?
Answer
# 2
select * from sysobjects where type = 'u'
 
Is This Answer Correct ?    1 Yes 0 No
Mahesh Gulati
 
 
 
  Re: How to perform a loop through all tables in pl/sql?
Answer
# 3
I got a lot of definitions for this but i thing this is right

A compiled plsql procedure 
stands for a stored procedure...

check out this
 
Is This Answer Correct ?    0 Yes 0 No
Highness
 

 
 
 
Other SQL PLSQL Interview Questions
 
  Question Asked @ Answers
 
declare l1 number := null; l2 number :=null; begin if l1=l2 then message('equal'); else if l1<>l2 then message('not equal'); else message('else'); end if; end if; end; What will be the output ? Oracle7
What is the result, when NULL is compared with NULL? TCS10
What is a cursor for loop ?  2
How do you handle exceptions. Give the syntax for it? Microsoft1
1 SELECT a.field1, b.field2, c.field3, d.field4 2 FROM atable a, atable b, ctable c, dtable d 3 ? 4 ORDER BY 1 What is the minimum number of joins that must be specified on line 3 in the sample code above to properly link the tables? Notice that the table "atable" is aliased twice: once as "a" and once as "b." 1. One join 2. Two joins 3. Three joins 4. Four joins 5. Five joins Sonata3
What are the datatypes a available in PL/SQL ?  2
When would you denormalize? Microsoft4
Write a query to get 2nd maximum salary in an employee table ? TCS19
I have one Excel file with 1,50,000 Records. Now I need to load that whole file into Oracle Database with same columns in Excel sheet . I need PLSQL Procedure or used by SQL PLUS Polaris1
write a query to delete similar records in particular fields(columns) in different tables  2
How do you get all records from 2 tables. Which join do you use? Microsoft3
Explain how procedures and functions are called in a PL/SQL block ?  1
what is difference between procedure and function Wipro4
what is the difference between granting and creating a view?  1
What are user defined stored procedures ? BirlaSoft2
What are the PL/SQL Statements used in cursor processing ?  2
What is Raise_application_error ?  1
define a variable representing the expression used to calculate on emps total annual remuneration.use the variable in a statement which finds all emps who can earn 30000 a year or more.  2
Where the integrity constrints are stored in Data Dictionary?  1
If a View on a single base table is manipulated will the changes be reflected on the base table?  3
 
For more SQL PLSQL Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com