| From: | venkat <ven(dot)tammineni(at)gmail(dot)com> |
|---|---|
| To: | Shoaib Mir <shoaibmir(at)gmail(dot)com> |
| Cc: | Postgres General <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: [SQL] How to Convert Integer to Serial |
| Date: | 2010-10-29 05:29:59 |
| Message-ID: | AANLkTin-oCkRSxgBSg9aA80aNJY0BfXtjA3NswReDyYy@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-sql |
Yes Done... Thanks alot...
On Fri, Oct 29, 2010 at 10:40 AM, Shoaib Mir <shoaibmir(at)gmail(dot)com> wrote:
> On Fri, Oct 29, 2010 at 4:05 PM, venkat <ven(dot)tammineni(at)gmail(dot)com> wrote:
>
>> ALTER TABLE Demotable ALTER COLUMN gid
>> SET DEFAULT nextval('serial'::regclass);
>>
>>
>> It is saying that ..serial does not exist...is that true ?
>>
>>
>>
> Please avoid sending emails to the personal email addresses but use the
> community mailing lists for that.
>
> For the error you mentioned please follow the steps I mentioned in my last
> email as you are doing it the wrong way.
>
> Create a sequence first and then you can assign that sequence to this
> column. You can not assign SERIAL like this, it has to be a sequence name in
> there.
>
> Shoaib Mir
> http://shoaibmir.wordpress.com/
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alban Hertroys | 2010-10-29 06:19:27 | Re: share lock when only one user connected? |
| Previous Message | Shoaib Mir | 2010-10-29 05:10:14 | Re: [SQL] How to Convert Integer to Serial |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dmitriy Igrishin | 2010-10-29 17:07:16 | Re: Using PL/pgSQL text argument in 'IN (INT,INT,...)' clause |
| Previous Message | Shoaib Mir | 2010-10-29 05:10:14 | Re: [SQL] How to Convert Integer to Serial |