From: | Herbert Liechti <Herbert(dot)Liechti(at)thinx(dot)ch> |
---|---|
To: | vincent leycuras <lv68(at)hotmail(dot)com>, pgsql-general(at)postgreSQL(dot)org |
Subject: | Re: [GENERAL] Some MySQL features |
Date: | 1999-12-03 14:02:42 |
Message-ID: | 3847CD82.9B84062E@thinx.ch |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
vincent leycuras wrote:
> I'd like to know if pgsql supports the two excellent features that exist in
> MySQL:
> - the possibility to load the database with ASCII formatted file containing
> the data we want to put;
Sure. This is the copy routine. But it is also easy to load data with
programs (perl DBI/DBD)
> - the index auto incrementation the prevents from having to specify the
> value of the primary key each time one adds a row.
Sure. You may define a sequence by doing this:
create sequence xxx_id_seq START 1;
create table xxy
(
xxx_Id INTEGER NOT NULL
DEFAULT NEXTVAL('xxx_id_seq'),
...
);
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Herbert Liechti E-Mail: Herbert(dot)Liechti(at)thinx(dot)ch
ThinX networked business services Stahlrain 10, CH-5200 Brugg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From | Date | Subject | |
---|---|---|---|
Next Message | Marcin Mazurek - Multinet SA - Poznan | 1999-12-03 14:16:08 | Re: [GENERAL] Some MySQL features |
Previous Message | Lachlan O'Dea | 1999-12-03 12:53:34 | All writes make postgresql a slow database? |