Perl ODBC complex query example needed
From: samregen (samregen_at_aol.com)
Date: 03/22/05
- Next message: PerlFAQ Server: "FAQ 9.14 How do I make sure users can't enter values into a form that cause my CGI script to do bad things?"
- Previous message: Sherm Pendley: "Re: Auth Surfing using Perl"
- Next in thread: Bob Walton: "Re: Perl ODBC complex query example needed"
- Reply: Bob Walton: "Re: Perl ODBC complex query example needed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Mar 2005 15:01:09 -0800
Hi,
I cannot find any examples of how to issue a multi-tabe query using
perl ODBC methods.
I am currently writing a perl script to issue queries generically, but
I have no reference examples for queries against multiple tables.
Specifically, I am used to using the form shown below, where a spcific
sql connection is in scope for the query. My quer spans connections,
so I am not sure how to approach this problem.
#Next we can issue the SQL statement and trap on warnings if it fails
if ($db{1}{connection}->Sql($passed_sql_statement)) {
my ($err) = $db{1}{connection}->Error;
warn "SQL() Error\n";
warn "\t\$passed_sql_statement: $passed_sql_statement\n";
warn "\t\$err: $err\n";
$db{1}{connection}->DumpData();
warn "\nThe problem SQL statment was: \n$passed_sql_statement\n";
warn "\n\n";
} else {
print STDERR "The statement \"$passed_sql_statement\" \nran
successfully\n\n";
}
I have been digging in the bit mines for 5 hours looking for examples
for this sort of query, but nothing out there shows the use of ODBC
methods.
Thanks to anyone who can help.
- Next message: PerlFAQ Server: "FAQ 9.14 How do I make sure users can't enter values into a form that cause my CGI script to do bad things?"
- Previous message: Sherm Pendley: "Re: Auth Surfing using Perl"
- Next in thread: Bob Walton: "Re: Perl ODBC complex query example needed"
- Reply: Bob Walton: "Re: Perl ODBC complex query example needed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|