Subject | Re: [ib-support] Delete first 100 from table |
---|---|
Author | Arno Brinkman |
Post date | 2003-06-10T22:07:37Z |
Hi,
comparision between de the sub-query and base-query, because for every
record of YourTable the sub-query is executed.
Regards,
Arno Brinkman
ABVisie
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Firebird links :
http://www.firebirdsql.com
http://www.firebirdsql.info
http://www.fingerbird.de/
http://www.comunidade-firebird.org/
Nederlandse firebird nieuwsgroep :
news://80.126.130.81
> I guess you could something likeNote that this will delete _ALL_ rows if <your condition> contains an equal
>
> DELETE FROM YourTable
> WHERE YourField IN
> (
> SELECT FIRST 100 YourField FROM YourTable
> WHERE <your Condition>
> );
comparision between de the sub-query and base-query, because for every
record of YourTable the sub-query is executed.
Regards,
Arno Brinkman
ABVisie
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Firebird links :
http://www.firebirdsql.com
http://www.firebirdsql.info
http://www.fingerbird.de/
http://www.comunidade-firebird.org/
Nederlandse firebird nieuwsgroep :
news://80.126.130.81