in reply to Re: Re: SQL Stored Procedure return value
in thread SQL Stored Procedure return value
It complains with the sql statement essentially. I have also tried escaping all the @ signs, it runs but always returns a value of 0.($sth = $dbh->prepare("declare \@ret numeric(9,4) exec TEST \@results=\@ret select \@ret");) Please advise.#$sth = $dbh->prepare("declare \@ret numeric exec TEST \@results=@ret +select @ret"); $sth = $dbh->prepare("declare \@ret numeric(9,4) exec TEST \@results= +@ret select @ret"); $sth->execute; do { while($d = $sth->fetch) { print "@$d\n"; } } while($sth->{syb_more_results});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: SQL Stored Procedure return value
by mpeppler (Vicar) on Jul 17, 2003 at 20:25 UTC | |
by gnangia (Scribe) on Jul 18, 2003 at 03:41 UTC | |
by mpeppler (Vicar) on Jul 18, 2003 at 11:20 UTC | |
by gnangia (Scribe) on Jul 18, 2003 at 15:21 UTC | |
by mpeppler (Vicar) on Jul 18, 2003 at 15:31 UTC |