Re: [HACKERS] Bug?

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: [HACKERS] Bug?
Дата
Msg-id 20061021152555.78840.qmail@web31805.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Bug?  ("Indira Muthuswamy" <indumuthu@gmail.com>)
Список 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.




В списке pgsql-sql по дате отправления:

Предыдущее
От: Richard Broersma Jr
Дата:
Сообщение: Re: conversion of numeric field from MSSQL to postgres
Следующее
От: Devrim GUNDUZ
Дата:
Сообщение: Re: Can we convert from Postgres to Oracle !!???