GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  Oracle Forms 4.0
Go To First  |  Previous Question  |  Next Question 
 Oracle Forms 4.0  |  Question 75 of 92    Print  
Can you truncate a table in a procedure in Oracle Forms? The table name is passed into the procedure.

  
Total Answers and Comments: 2 Last Update: December 04, 2006     Asked by: Amritha 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 22, 2006 14:07:27   #1  
kaye        

RE: Can you truncate a table in a procedure in Oracle ...
yes.use execute immediate.
 
Is this answer useful? Yes | No
December 04, 2006 14:18:58   #2  
rampratap409 Member Since: September 2006   Contribution: 111    

RE: Can you truncate a table in a procedure in Oracle ...

yes

create procedure truncatetable(tname in varchar2) is

sqlstr varchar2(100);

begin

sqlstr : 'truncate table '||tname;

execute immediate sqlstr;

end;


 
Is this answer useful? Yes | No

 Related Questions

 Default  Block  facility.  Layout  Editor.  Menu  Editor.  Object  Lists.  Property  Sheets.  PL/SQL  Editor.  Tables  Columns  

 Base  table  Blocks.   Control  Blocks.          1.   A   base   table   block   
Latest Answer : Base-table blocks, as their name implies, are based on a database table or view and must contain at least one item that is based on a column in that database table or view. If you create a block based on the STUDENT table, at least one of its items must ...

 A   navigable  item is one that operators can navigate to with the keyboard during  default  navigation,  or  that  Oracle  forms  can  navigate  

 When-window-activated,     when-window-closed,     when-window-deactivated,when-window-resized 

 Page - Canvas-View   Page 0 - Canvas-view null. 

      Default editor     User_defined editors     system editors. 
Latest Answer : Layout EditorPl/sql EditorMenu Editor ...

 A  record  group  is  an  internal  oracle  forms data structure that has a similar column/row frame work to a database table 
Latest Answer : All LOVs are based on another Forms object called a record group. Record groups are logical objects, so they have no physical properties and are never  displayed to the user. A record group is similar to a database table in that it stores an array ...

 Create_group (Function)   Create_group_from_query(Function)   Delete_group(Procedure)   Add_group_column(Function)   Add_group_row(Procedure)   Delete_group_row(Procedure)   

List  system  variables  available  in forms 4.0, and not available in forms 3.0?
       System.cordination_operation      System Date_threshold      System.effective_Date      System.event_window      

 A  library  is  a  collection of Pl/SQL program units, including user named procedures, functions & packages 
Latest Answer : A library is a collection of subprograms, including user-named procedures, functions, and packages. Libraries provide a convenient means of storing client-side program units and sharing them among multiple applications. Once you create a library, you ...


 Sponsored Links

 
Related Articles

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Using Oracle XML DB Repository

Using Oracle XML DB Repository Another variation on accessing and manipulating XML content stored in Oracle database is provided by Oracle XML DB repository which is an essential component of Oracle XML DB mosgoogle NOTE Oracle XML DB repository also known as XML repository is a hierarchically organ
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

XML Processing in PHP and Oracle Applications

Processing XML in PHP Oracle Applications As mentioned there are two alternatives when it comes to performing XML processing in your PHP Oracle application You can perform any required XML processing using either PHP s XML extensions or PEAR XML packages or Oracle s XML features mosgoogle In the fol
 

PHP Oracle Web Development

PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax The book is written by Yuli Vaseliev a well known author of different web development and programming books PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax is a good starting b
 

ODP.NET - Populating a Dataset with a Single Data Table

ODP NET Populating a Dataset with a Single Data Table A dataset is simply a group of data tables These data tables can be identified with their own unique names within a dataset You can also add relations between data tables available in a dataset mosgoogle The following code gives you the details o
 

Getting Started with Oracle and ODP.NET

ODP NET Developer’ s Guide by Jagadish Chatarji Pulakhandam Sunitha Paruchuri A practical guide for developers working with the Oracle Data Provider for NET and the Oracle Developer Tools for Visual Studio 2005 Application development with ODP NET Dealing with XML DB using ODP NET Oracle
 

PHP Oracle Web Development Review

PHP Oracle Web Development Data processing Security Caching XML Web Services and Ajax The book is written by Yuli Vaseliev a well known author of different web development and programming books The author is also an expert in open source technologies and SOA Service Oriented Architecture But besides
 

jQuery Table Row Finished Code

jQuery Table Row Finished Code The Finished Code Our second example page has demonstrated table row striping highlighting tooltips collapsing expanding and filtering Taken together the JavaScript code for this page is mosgoogle geshibot lang php" document ready function var highlighted
 

jQuery Expanding and Collapsing Table Rows

jQuery Expanding and Collapsing Table Rows The expanding and collapsing behavior added earlier also conflicts with our filters If a section is collapsed and a new filter is chosen then the matching items are displayed even if in the collapsed section Conversely if the table is filtered and a section
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape