AllExperts > Experts 
Search      

Ingres

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Ingres Answers
Question Library

Ask a question about Ingres
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Peter Gale
Expertise
Anything on Ingres. Installing, configuring, Performance, SQL. Making best use of Ingres, Query Execution, data importing & exporting.

Experience
15 Years using Ingres. Worked with every release from 6.4 through to R3 & 2006. Mainly as DBA but also in application development. Specialist in performance tuning. Experienced Ingres trainer having delivered courses all over the world

Organizations
I am Managing Director and a Principal Consultant at Comprehensive Soltions (www.comp-soln.co.uk) and a committe member of the UK Ingres Users Association.

 
   

You are here:  Experts > Computing/Technology > Databases > Ingres > how to subsite dynamic values in ingres plsql procedure

Topic: Ingres



Expert: Peter Gale
Date: 8/7/2006
Subject: how to subsite dynamic values in ingres plsql procedure

Question
ai i have one small problem like i have to execute a query where the query is placed in a .sql file and the problem is how can i declare the variables in the sql file and replace them with the dynamically passed values from command line while calling the sql file,

sample scenario in oracle:
define user=&1;
and in query we write some thing like
select &user from emp;

the same scenario im looking for ingres

hope u help me

Answer
Hi Ravi,

Can you supply a more extended example of what you are trying to do please.
Ingres uses database procedures or you can have SQL files that are run via the Terminal monitor (sql command). Which one are you trying to use? What is the overall objective? Is to be called from an application or run from the command line.

Let me know and I will respond with more details.

Peter

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.