Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: DBD::Sybase stored procedure question

by ccn (Vicar)
on Sep 10, 2004 at 13:52 UTC ( [id://390067]=note: print w/replies, xml ) Need Help??


in reply to DBD::Sybase stored procedure question

You may try something like this:

$_ = $dbh->quote($_) for $subcomponentname, $subcomponentdescription; my $sth = $dbh->prepare(<<"SQL") or die "Can't prepare: " . $sth->err +str(); declare \@SubComponentID int exec spSubComponentADD $subcomponentname, $subcomponentdescription, \@SubComponentID OUTPUT SQL $sth->execute() or handle_error ("Can't execute SQL" . $sth->errstr(), $dbh, $sth); my (@data) = $sth->func('syb_output_params');

Update: code shorten and $dbh->quote added

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://390067]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-12-02 20:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found