Re: [SQL] How to Convert Integer to Serial

From: Shoaib Mir <shoaibmir(at)gmail(dot)com>
To: venkat <ven(dot)tammineni(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] How to Convert Integer to Serial
Date: 2010-10-29 05:01:40
Message-ID: AANLkTim55Uz34D3AvOX1xOFahvE1zzPHjdXygReg3JoT@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

On Fri, Oct 29, 2010 at 3:58 PM, venkat <ven(dot)tammineni(at)gmail(dot)com> wrote:

> Dear All,
>
> I got the solution... Here is my query
>
> ALTER TABLE DemoTable ALTER gid TYPE INT2;
>
>
>
Are you sure that you have converted here to a SERIAL type?

--
Shoaib Mir
http://shoaibmir.wordpress.com/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message venkat 2010-10-29 05:02:10 Re: [SQL] How to Convert Integer to Serial
Previous Message Shoaib Mir 2010-10-29 05:00:16 Re: [SQL] How to Convert Integer to Serial

Browse pgsql-sql by date

  From Date Subject
Next Message venkat 2010-10-29 05:02:10 Re: [SQL] How to Convert Integer to Serial
Previous Message Shoaib Mir 2010-10-29 05:00:16 Re: [SQL] How to Convert Integer to Serial