Re: insert values - Mailing list pgsql-sql

From Tom Lane
Subject Re: insert values
Date
Msg-id 27001.982900871@sss.pgh.pa.us
Whole thread Raw
In response to insert values  (Ines.Klimann@liafa.jussieu.fr)
Responses Re: insert values  (Ines.Klimann@liafa.jussieu.fr)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: Jie Liang
Date:
Subject: Re: Can a function return a record set?
Next
From: Jie Liang
Date:
Subject: Re: Trouble with CREATE FUNCTION