Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: Arguments to SQL statements in Ctlib
Date: Nov 15 1999 3:33PM
Hrvoje Niksic writes:
> Is it possible to send SQL statements with arguments. I'd like to
> write something like:
> @results = ct_sql("SELECT foo FROM bar WHERE id=?", $needed_it);
> The ? syntax is borrowed from Perl DBI and is not required, but it
> should make my meaning clear.
No, that isn't supported.
The closest CTlib would come is if you create a stored procedure, and
then use ct_command(CS_RPC_CMD) and ct_param() to send the request.
Michael Peppler -||- Data Migrations Inc.
firstname.lastname@example.org -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
Sybase on Linux mailing list: email@example.com