Subject | Re: [firebird-support] Moving primary key to another column |
---|---|
Author | Milan Babuskov |
Post date | 2012-08-06T16:13:49Z |
Matthias Hanft wrote:
--
Milan Babuskov
==================================
The easiest way to import XML, CSV
and textual files into Firebird:
http://www.guacosoft.com/xmlwizard
==================================
>> 4. fill the new column using the generator:update MyTable set NewKey = gen_id(MyGen,1);
>> update MyTable set NewKey=(select gen_id(MyGen,1) from RDB$DATABASE)
> Brilliant :-) (I already wondered how to fill up an "incrementing"Well, now you know of 2 ways to do it ;)
> column automagically.)
--
Milan Babuskov
==================================
The easiest way to import XML, CSV
and textual files into Firebird:
http://www.guacosoft.com/xmlwizard
==================================