🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.programowanie
Article #393

Re: Postgres SQL - default

#393
From: Slawomir Bialek
Date: Tue, 14 Sep 1999 11:22
18 lines
1155 bytes
On Tue, 14 Sep 1999 07:45:59 +0200, isthar <isthar@sote.poznan.pl> wrote:
>create table x (
>    id serial,
>    test char(4)
>function test($zmienna){
>    $query="insert into x values(0, $zmienna)";
>w miejsce kolumny z typem auto_increment daje 0 i dziala
>czy ktos wie jak to przedstawic dla postgresa ?

na przykład można tak:
$query="insert into x (test) values($zmienna)";

jeśli jest więcej pól
$query="insert into x (test,blah,blah,blah) values($zmienna,$val,$val,$val)";

id się samo nada...

--c
Technical Details
Message-ID: <slrn7tchff.1ml.civic@pysiek.bildex.net.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!uw.edu.pl!news.icm.edu.pl!news.onet.pl!news.memax.krakow.pl!wenus.oho.com.pl!civic
References: <37DDE115.98949EBD@sote.poznan.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!uw.edu.pl!news.icm.edu.pl!news.onet.pl!news.memax.krakow.pl!wenus.oho.com.pl!civic
From: civic@pysiek.bildex.net.pl (Slawomir Bialek)
Newsgroups: pl.comp.os.linux.programowanie
Subject: Re: Postgres SQL - default
Date: 14 Sep 1999 11:22:38 GMT
Organization: Lame Co.
Lines: 18
Message-ID: <slrn7tchff.1ml.civic@pysiek.bildex.net.pl>
References: <37DDE115.98949EBD@sote.poznan.pl>
NNTP-Posting-Host: pysiek.bildex.net.pl
Mime-Version: 1.0
User-Agent: slrn/0.9.5.4 (UNIX)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit