Re: insert values

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ines(dot)Klimann(at)liafa(dot)jussieu(dot)fr
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: insert values
Date: 2001-02-23 04:01:11
Message-ID: 27001.982900871@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Ines(dot)Klimann(at)liafa(dot)jussieu(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Ines.Klimann 2001-02-23 08:35:01 Re: insert values
Previous Message Jie Liang 2001-02-23 03:39:17 Re: Trouble with CREATE FUNCTION