Up Prev Next
From: "Robert Banniza" <hunt127588 at home dot com>
Subject: Updating only certain records in a query...
Date: Oct 27 1999 4:38AM
I'm trying to write some Sybperl using CTlib that uses $ref =
$d->ct_sql("select id, comment_type from my_table", \&my_routine );
As I grab each row of data, I'm using an if statement as a conditional to
check whether to update that particular comment_type in that record. How
would I go about doing this?? This query is more of a table scan to check
for null values in comment_type. If comment_type eq null, I want to insert a
value in comment_type. Could someone show me how to do this? I have tried
many different ways but still haven't figured out the right solution.
P.S. I have also looked at the solutions in /sybperl*/eg/ and couldn't find