Subject | Re: [ib-support] SQL query |
---|---|
Author | Milan Babuskov |
Post date | 2003-05-07T11:10:45Z |
Svein Erling Tysvaer wrote:
One solution would be to create the other table and do:
INSERT INTO NewTable (column_list)
SELECT DISTINCT column_list FROM OldTable;
--
Milan Babuskov
http://fbexport.sourceforge.net
> Alfred,AFAIK, that insert would fail, and none of the records would be inserted.
> why don't you simply create another table with the same structure and a
> primary key and then simply do
>
> INSERT INTO NewTable
> SELECT * FROM OldTable
One solution would be to create the other table and do:
INSERT INTO NewTable (column_list)
SELECT DISTINCT column_list FROM OldTable;
--
Milan Babuskov
http://fbexport.sourceforge.net