Re: How to set a Default Value - Mailing list pgsql-novice

From Ângelo Marcos Rigo
Subject Re: How to set a Default Value
Date
Msg-id 20060113174026.73803.qmail@web36704.mail.mud.yahoo.com
Whole thread Raw
In response to Re: How to set a Default Value  (Michael Glaesemann <grzm@myrealbox.com>)
Responses Re: How to set a Default Value  (Michael Fuhr <mike@fuhr.org>)
List pgsql-novice
My table definition (i change the deafult to 'N') :

CREATE TABLE pautaitem
(
  cdpautaitem serial NOT NULL,
  arquivo varchar(255),
  item varchar(255),
  cdpauta varchar(255),
  cditem varchar(11) NOT NULL DEFAULT 'N',
  CONSTRAINT pauta_arquivos_pkey PRIMARY KEY
(cdpautaitem)
)

My insert query:

INSERT INTO PautaItem (
         CdPauta,
         Item,
                 CdItem,
         Arquivo) VALUES (
         '"+this.sCdPauta',
         '"+this.sItem',
                 '"+this.sCdItem',
         '"+this.sArqImagem')

Ângelo Marcos Rigo
AMR Informática
(51) 3348 0870
Rua Pe. Alois Kades 400/210
Porto Alegre /RS/Brasil
http://amr.freezope.org
angelo_rigo@yahoo.com.br










_______________________________________________________
Yahoo! doce lar. Faça do Yahoo! sua homepage.
http://br.yahoo.com/homepageset.html


pgsql-novice by date:

Previous
From: "Christian Hofmann"
Date:
Subject: User variables like: SET @a='test';
Next
From: Michael Fuhr
Date:
Subject: Re: How to set a Default Value