From: | Richard Broersma Jr <rabroersma(at)yahoo(dot)com> |
---|---|
To: | Indira Muthuswamy <indumuthu(at)gmail(dot)com>, "Jim C(dot) Nasby" <jim(at)nasby(dot)net> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: [HACKERS] Bug? |
Date: | 2006-10-21 15:25:54 |
Message-ID: | 20061021152555.78840.qmail@web31805.mail.mud.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-sql |
> Then how do we clear the values of a serial column(is it done only by
> dropping the column?)?
If you look at the following link, you will see that serial is not really a true data-type. It is
merely a short-cut to get the desired results:
http://www.postgresql.org/docs/8.1/interactive/datatype.html#DATATYPE-SERIAL
Also, if you are interested in resetting your columns "serial" value back to 1 or 0 or -10000, you
can do it using the setval() function for the following link:
http://www.postgresql.org/docs/8.1/interactive/functions-sequence.html
Regards,
Richard Broersma Jr.
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2006-10-21 18:00:19 | Re: [SPAM?] Re: Asynchronous I/O Support |
Previous Message | Krycek | 2006-10-21 14:01:58 | Re: Granting all tables in schema by one SQL command |
From | Date | Subject | |
---|---|---|---|
Next Message | Devrim GUNDUZ | 2006-10-21 21:03:38 | Re: [SQL] Can we convert from Postgres to Oracle !!??? |
Previous Message | Richard Broersma Jr | 2006-10-21 05:10:07 | Re: conversion of numeric field from MSSQL to postgres |