Re: [SQL] booleans - Mailing list pgsql-sql

From Gregory Holston
Subject Re: [SQL] booleans
Date
Msg-id Pine.SUN.3.91.981229174732.16696A-100000@shell
Whole thread Raw
In response to Re: [SQL] booleans  (Eric McKeown <ericm@palaver.net>)
List pgsql-sql
I wouldn't think it would have any problem handling this code either,
code I used was :
if( $id ) {
        pg_Exec($conn, "INSERT into authors
        values ('$pubrelease', '$id', '$first');");
        }
First was the variable where the boolean, t or f was to be placed in the
HTML form.  I did not put quotes insert them with quotes for this is
already done with the PHP.  This works for int, text, etc. hich was why I
was surprised by the error message.

-Greg



pgsql-sql by date:

Previous
From: jcc2@juno.com (John C Cusick)
Date:
Subject: Regex
Next
From: Eric Marsden
Date:
Subject: UPDATE table SET col = (SELECT ...)