PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Don Hosek <dhosek at webley dot com>
Subject: Re: Arguments to SQL statements in Ctlib
Date: Nov 15 1999 3:46PM

Hrvoje Niksic wrote:
 
> 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.

I don't understand why you can't write
	@results = ct_sql("select foo from bar where id=$needed_it");

-dh