- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- To repeat a query
Operating System - HP-UX
1753743
Members
5019
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2002 09:27 AM
тАО01-23-2002 09:27 AM
To repeat a query
I want to repeat this query 295 times and I have the name "variable" in a file or in a db table. I want a PL/SQL script.
select * from nas where name='variable'
Thanks
select * from nas where name='variable'
Thanks
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2002 09:37 AM
тАО01-23-2002 09:37 AM
Re: To repeat a query
Hi,
A DBA may answer your question better.
Meanwhile, this is what I did for my cgi's.
sql_file contents
...
select * from table where name="REPLACE_THIS"
..
Following is the CGI
...
VAR=$1 #an example of assigning a variable
sed 's/REPLACE_THIS/,/'$VAR'/' sql_file > /tmp/sql$$
/tmp/sql$$ #run the sql script
rm /tmp/sql$$
...
-Sri
A DBA may answer your question better.
Meanwhile, this is what I did for my cgi's.
sql_file contents
...
select * from table where name="REPLACE_THIS"
..
Following is the CGI
...
VAR=$1 #an example of assigning a variable
sed 's/REPLACE_THIS/,/'$VAR'/' sql_file > /tmp/sql$$
/tmp/sql$$ #run the sql script
rm /tmp/sql$$
...
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2002 10:25 AM
тАО01-23-2002 10:25 AM
Re: To repeat a query
Have you thought about using perl?
http://tlowery.hypermart.net/perl_dbi_dbd_faq.html
http://www.saturn5.com/~jwb/dbi-examples.html
and a library of perl docs :
http://www.palslib.com/Perl_DBI/Readings.html
live free or die
harry
http://tlowery.hypermart.net/perl_dbi_dbd_faq.html
http://www.saturn5.com/~jwb/dbi-examples.html
and a library of perl docs :
http://www.palslib.com/Perl_DBI/Readings.html
live free or die
harry
Live Free or Die
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP