Subject | Re: [ib-support] Delphi Delete Records |
---|---|
Author | Pete Clark |
Post date | 2002-11-06T12:30:52Z |
In message <200211060226_MC3-1-193B-6104@...>, Slim Roberts
<slim_at_rsengineering@...> writes
it is, you try so many different things, and none of them seem to
work...
Pete Clark
<slim_at_rsengineering@...> writes
>IBSQL1.ExecSQL ? I thought that I had tried this... but you know how
>Alan.
>Use a TIBSQL component Do (Delete from TableName where Value =:pValue)
>Params[0].AsWhatever := Value for deletion;
>ExecSQL;
it is, you try so many different things, and none of them seem to
work...
>I couldn't do this, because there were over a million records
>Around this you must put a transaction.
>As to how to do the lot.
>Create a TStringList
>Add the Primary Key value to the list for each record to zap
>the do a for x = 0 to list count
>and run above SQL for each, and put the transaction around the lot
>--
>HTH
>Slim
>
>Slim Roberts
>R S Engineering.
>UK
>www.rs-engineering.co.uk
>Member of the UK Borland User Group
Pete Clark