From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ines.Klimann@liafa.jussieu.fr
Cc: pgsql-sql@postgresql.org
Subject: Re: insert values
Date: Thu, 22 Feb 2001 23:01:11 -0500
Message-ID: <27001.982900871@sss.pgh.pa.us> (raw)
In-Reply-To: <20010222135222.A14873@liafa0.liafa.jussieu.fr>
References: <20010222135222.A14873@liafa0.liafa.jussieu.fr>
Ines.Klimann@liafa.jussieu.fr writes:
> I have the following type :
> ...
> How can I insert a value in this table ?
INSERT INTO entiers VALUES('1234') should work fine.
BTW, change the "malloc" calls to "palloc" if you don't want to suffer
from severe memory leakage problems. Otherwise the code seems OK,
though I'd recommend a tad more validity checking in the input
routine...
regards, tom lane
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, Ines.Klimann@liafa.jussieu.fr
Subject: Re: insert values
In-Reply-To: <27001.982900871@sss.pgh.pa.us>
References: <20010222135222.A14873@liafa0.liafa.jussieu.fr> <27001.982900871@sss.pgh.pa.us>
* 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