Subject | Re: insert into with primary key |
---|---|
Author | alfredlanger35 |
Post date | 2009-01-09T19:15:29Z |
--- In firebird-support@yahoogroups.com, "Martijn Tonies"
<m.tonies@...> wrote:
The insert command should create the employee_2008_11.
I have read this as a trick in google for a while.
It seems to be the wrong way.
Alfred Langer
<m.tonies@...> wrote:
>I created employee_2008 for myself.
>
> >> > insert into employee_2008_11 select * from employee_2008
> >> >
> >> > and employee_2008_11 lost the information of the primary key.
> >>
> >> What does this mean? Did it lose -metadata- information about
> >> which columns are part of the primary key?
> > Yes.
>
> But you yourself created table "employee_2008_11", didn't you?
> How did you create it?
The insert command should create the employee_2008_11.
I have read this as a trick in google for a while.
It seems to be the wrong way.
>With regards
> >> Or do the primary key -values- change when you do the INSERT?
> > No. The values are all correct.
> >>
>
Alfred Langer