From: | "postgresql" <pgsql(at)symcom(dot)com> |
---|---|
To: | "PgSQL-SQL" <pgsql-sql(at)postgresql(dot)org> |
Subject: | serial type question |
Date: | 2001-03-19 17:41:29 |
Message-ID: | 200103191733.f2JHXdN01064@mail.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
I have a table that I want to add a serial type column. Is there a way
to add it or do I have to create a new table and insert into it. I have
experimented with:
insert into newdb (name) select name from olddb order by jobno;
however, pg does not allow the 'order by' during an insert/select
I am on version 7.0.3
Maybe I don't need to do this. What I am trying to accomplish is to
have PG create job numbers. Today, I only have 2 workstations that
push jobs into the server and PG tracks the job number. However, I
have been informed that in the next 6-8 months the number of job
creation workstations will grow to 8 - 10.
I would like to migrate to a job number created when the insert is
done.
Thanks for your help.
Ted Petrosky
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-03-19 17:46:39 | Re: What do I do with this error? |
Previous Message | Tom Lane | 2001-03-19 17:32:57 | Re: What do I do with this error? |