GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  PL/SQL
Go To First  |  Previous Question  |  Next Question 
 PL/SQL  |  Question 159 of 166    Print  
Call SQL Script
How to call SQL script file from PL/SQL?


  
Total Answers and Comments: 1 Last Update: April 14, 2009     Asked by: tnagarjun 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 13, 2009 05:58:38   #1  
rajivgupta780184 Member Since: August 2008   Contribution: 32    

RE: Call SQL Script
@[source drive]/filename.sql;

@c:/sql_script.sql

 
Is this answer useful? Yes | No

 Related Questions

Can we call a procedure into another procedure?If yes means how you can pass the perameters for the two procedures?

Hi How do I call procedures which have ref cursors as parameters and print the elements in the ref cursor in PL/SQL Developer ?I executed the following code in PL/SQL Developer : CREATE OR REPLACE PACKAGE EMP_PACK ASTYPE EMPCURTYP IS REF CURSOR RETURN EMP%ROWTYPE;PROCEDURE EMP_PROC( EMP_CUR IN OUT EMPCURTYP);END EMP_PACK;CREATE OR REPLACE PACKAGE BODY EMP_PACK ASPROCEDURE EMP_PROC(EMP_CUR IN OUT EMPCURTYP) ISBEGINOPEN EMP_CUR FOR SELECT * FROM EMP;END EMP_PROC;END EMP_PACK;/When I executed the following
View Question | Asked by : Divya

Hi 1.What is difference between procedure and function?1. procedure may or may not return values whereas function must return value2. we can call the function in the sql statements whereas we can't call the procedureExcept these two, is there any difference between these two.2. What is pl/sql table and what is use of it. In which case, we can use it3. What is ref cursor, what is the use of it.4.how the function will return multiple values. Pls give me with examples

How to run a curser for update "with hold2 in PL/SQL ?Example:declarecursor CSRtest is select * from emp for update of lastname;beginfor i in CSRtest loop...do something...call procfedure with "commit"update emp set lastname = "..." where current of CSRtest;endloop;Results in "ORA-01002: fetch out of sequence" because curser is closed after "Commit"How to "save state of curser" ?Any workaround?
Read Answers (1) | Asked by : Stefan

Latest Answer : We can call a function from anonymous block as a part of sql statement written in that block.eg: create or replace function fn_emp(v_empno in number)return varchar2 isbeginselect ename into v_ename from empwhere empno=v_empno;return v_ename;end;this function ...
Read Answers (2) | Asked by : Anuruddha SINGH

Hi all I wrote a procedure to send email via plsql procedure, It was compiled sucessfully but not working ....here is the code (actuly i added the dbms output like step1 ,step 2 to see in which step the control is going on )create or replace PROCEDURE send_test_messageIS mailhost VARCHAR2(64) := 'mail.cmcltd.com'; sender VARCHAR2(64) := 'akash.sharma@cmcltd.com'; recipient VARCHAR2(64) := 'lalit.mohan@cmcltd.com'; mail_conn utl_smtp.connection;BEGIN
Tags : DBMS

What is the maximum number of data string can be returned from DBMS_OUTPUT? andHow do you call a trigger from a table?
Read Answers (2) | Asked by : Lisa

Hi,Can somebody please answer couple of my questions ASAP?1) How do you call a trigger on a table?2) What is the maximum number of data strings that can be returned through DBMS_OUTPUT?Much thanks!!
Read Answers (2) | Asked by : Lisa

User Interface accepts the Employee information and this data needs to be compared with the existing data and the differences needs to be populated through a Pl/SQL table.Create a type (EMP_DATA) to populate 
View Question | Asked by : kshasikumar

How to call a PL/SQL function in another PL/SQL function? Is it possible? Give example? 
Latest Answer : eg,create or replace fun_1 return varchar2asddmmyy varchar2;beginselect sysdate into ddmmyy from dual;end fun1;in above example function fun_1 calling another function (i.e. sysdate) thro' select statement. this way you can call any function ...


 Sponsored Links

 
Related Articles

How does the function call within function get evaluated?

Whenever we have more than one function which is called for a finite number of times then such a function gets evaluated from inside out. Let us understand this concept with an example. For instance consider a function sample called within it 4 times as given in program below: main() { int a=50;
 

How to call C header that is not provided generally by system in C++?

Headers can be called by using extern C Syntax of extern C is: extern "C" <function declaration> for example to call C functions from C++ we can write extern "C" { <function declaration> <function declaration> ...
 

What is difference between call by value and call by reference in function?

The arguments passed to function can be of two types 1. Values passed 2. Address passed The first type refers to call by value and the second type refers to call by reference. For instance consider program1 main() { int x=50, y=70; interchange(x,y); printf(“x=%d y=%d”,x,
 

Recording Test Script With WinRunner

How To Use a Wizard to Record a Test Script With WinRunner If you have a script that you want to convert with WinRunner, you can use the DataDriver Wizard to transform the script into a test that is driven by data. For instance, if you want your test script to include things such as checkpoints or v
 

WinRunner Script Design Tips

Scripts play an important role in the function of WinRunner. Those who wish to successful with this program will need to learn how to properly create scripts. In this article, I will provide you with a number of useful tips for script creation. The first tip of script development is to always place
 

Call by Value and Call by Reference

Call by Value and Call by Reference In this tutorial you will learn about C Programming What is difference between call by value and call by reference in function mosgoogle The arguments passed to function can be of two types namely 1 Values passed 2 Address passed The first type refers to call by
 

VB Script - How to use VBScript with Forms

VB Script How to use VBScript with Forms In this tutorial you will learn about How to use VBScript with Forms Introduction How to do validate your Forms and Conclusion mosgoogle Introduction Now this is the last topic of the tutorial and you will learn how to validate and submit the data to the web
 

VB Script - Controlling VB Script Routines

VB Script Controlling VB Script Routines In this tutorial you will learn about Controlling VB Script Routines Introduction VB Script Description If then else Select Case Looping Statements For Next For Each Next Do loop Do While Do Until While wend and Conclusion mosgoogle Introduction Every program
 

Working with Objects in VB Script

VB Script Objects with VB Script In this tutorial you will learn about VB Script Objects with VB Script Introduction How to Add Objects to your web pages How to Add Objects to your Web Pages and How to link Vb Script with Objects mosgoogle Introduction Objects which are in the form of ActiveX contro
 

VB Script - Working with Variables

VB Script Working with Variables In this tutorial you will learn about VB Script Wroking with variables Introduction Description Naming Conventions Variants and its sub types How to Assign values to a variable What is the scope of a variable Constants Arrays and Conclusion mosgoogle Introduction A v
 

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