Skip site navigation (1) Skip section navigation (2)

Re: [SQL] Autogenerated Unique Index

From: "Antonio W(dot) Lagnada" <alagnada(at)lsil(dot)com>
To: Andrzej Mazurkiewicz <andrzej(dot)mazurkiewicz(at)polkomtel(dot)com(dot)pl>
Cc: Pgsql-sql <pgsql-sql(at)postgreSQL(dot)org>
Subject: Re: [SQL] Autogenerated Unique Index
Date: 2000-03-07 15:05:10
Message-ID: 38C51AA6.BB53B911@lsil.com (view raw or flat)
Thread:
Lists: pgsql-sql
Hi Andrzej,

Does this mean that everytime I create a new record on the table, the field
"B" will be automatically incremented?

- Antonio

Andrzej Mazurkiewicz wrote:

> cfmg_adm=> CREATE TABLE A (
> cfmg_adm(>        B int NOT NULL,
> cfmg_adm(>        C char(5),
> cfmg_adm(> PRIMARY KEY (B)
> cfmg_adm(> );
> NOTICE:  CREATE TABLE/PRIMARY KEY will create implicit index 'a_pkey' for
> table
> 'a'
> CREATE
> cfmg_adm=>
> Regards,
> Andrzej Mazurkiewicz
>
> > -----Original Message-----
> > From: Antonio W. Lagnada [SMTP:alagnada(at)lsil(dot)com]
> > Sent: 7 marca 2000 14:41
> > To:   Pgsql-sql
> > Subject:      [SQL] Autogenerated Unique Index
> >
> > Can someone give me a step-by-step instructions on how to generate a
> > unique autogenerated index in PostgreSQL?
> >
> > --
> > Antonio W. Lagnada
> >
> >
> > 952.921.8533
> > alagnada(at)lsil(dot)com_NOSPAM
> > Remove the _NOSPAM for
> > the actual email address
> >  << File: Card for Antonio W. Lagnada >>

--
Antonio W. Lagnada

952.921.8533
alagnada(at)lsil(dot)com_NOSPAM
Remove the _NOSPAM for
the actual email address


Attachment: alagnada.vcf
Description: text/x-vcard (413 bytes)

In response to

Responses

pgsql-sql by date

Next:From: Antonio W. LagnadaDate: 2000-03-07 15:10:39
Subject: VarChar(n)
Previous:From: Andrzej MazurkiewiczDate: 2000-03-07 14:30:38
Subject: RE: [SQL] Autogenerated Unique Index

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group