Subject | Re: [firebird-support] Re: Insert succesfull while violating primary key constraint |
---|---|
Author | Svein Erling Tysvaer |
Post date | 2003-06-19T14:59:26Z |
At 14:06 19.06.2003 +0000, you wrote:
execute pretty quickly.
your performance completely!
HTH,
Set
>Have you ever tried to run a queryIf you have an index on PKID (not necessarily unique), I think it would
>
>delete from TableName T1
>where exists ( select * from TableName T2
> where T1.PKID=T2.PKID
> and T1.RDB$db_key<T2.RDB$db_key);
>
>when the table contains 4 million records?
execute pretty quickly.
>So I am still thinking about which approach I should use to removeI think the 'delete option' sounds most appealing.
>the double records.
>Posibilities:
>- Select distinct * for each table and export it as raw data and
>import it again
>- Copy the database using a custom made application which tries to
>insert each record and if it fails I do not mind.
>Does somebody know if it is possible to run queries accross multipleNo, crossdatabase queries are only supported by the BDE, and that will kill
>database for this use?
your performance completely!
HTH,
Set