in reply to db prepare failed:invalid character error : Perl DBI - Help plz
Does that SQL work when you paste it into your command line SQL client?
Many SQL dialects do not like double quotes (""), and I think that Oracle does not like these. Also, you should use placeholders in your SQL statements or at least use DBI->quote.
Using placeholders, your code would look similar to this:
my $sth1 = $db->prepare("SELECT ... FROM WF_WORKFLOW WHERE .... = ?") +; # Japanese characters elided $sth1->execute($scode1); my @results = $sth1->fetchall_arrayref({});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: db prepare failed:invalid character error : Perl DBI - Help plz
by srini_sun (Initiate) on Oct 15, 2007 at 07:57 UTC | |
by graff (Chancellor) on Oct 15, 2007 at 08:28 UTC |