pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gerard Samuel <gsam@trini0.org>
To: pgsql-php@postgresql.org
Subject: Adding a new column
Date: Thu, 23 Jan 2003 12:20:24 -0500
Message-ID: <3E302458.3000304@trini0.org> (raw)

  I have a table with data in it, and Im trying to add another column to it.
Im executing ->
ALTER TABLE search_content ADD COLUMN faq_id VARCHAR(33);
then
alter table search_content alter column faq_id set default '' not null;

Im getting an error ->
ERROR:  parser: parse error at or near "null"

If I take out not null, the sql works but I need the column to be "not null"

What am I doing wrong???
Thanks

-- 
Gerard Samuel
http://www.trini0.org:81/
http://dev.trini0.org:81/





Message-ID: <3E302458.3000304@trini0.org>
Permalink:  ../3E302458.3000304@trini0.org/
Also on:    postgresql.org/message-id/3E302458.3000304@trini0.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: gsam@trini0.org
  Subject: Re: Adding a new column
  In-Reply-To: <3E302458.3000304@trini0.org>
  References: <3E302458.3000304@trini0.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox