Posted By: Jovo () on 'CZdatabases'
Title:     Re: Ad: Serial
Date:      Tue Mar  4 10:03:19 2003

Ahoj.

  Trochu jsem googleoval a neco jsem nasel. Jestli to dava smysl FAKT NEVIM:)

INSERT INTO the_table( dat ) VALUES ('value');
SELECT currval( 'the_table_ser_seq' );
- http://archives.postgresql.org/pgsql-sql/1999-09/msg00148.php

CREATE SEQUENCE
- http://jamesthornton.com/postgres/6.5/user/sql-createsequence.htm

Styl INS, GetOID, SEL je pry pomaly, zkus zpusoby popsane v 
- http://php.planetmirror.com/manual/hk/function.pg-exec.php
V podstate jde o totez jako SELECT currval( 'the_table_ser_seq' );


Jovo.

Search the boards