MySQL Forums
Forum List  »  Delphi

Re: "if exists" in clause
Posted by: Peter Brawley
Date: October 03, 2020 01:03PM

> this doesn't permit me to test if the index exists
> before executing the code to drop it

As Jon says, you can query information_schema for that info.

Or more simply, execute the drop index cmd unconditionally and ignore an "index does not exist" error if it occurs.

Options: ReplyQuote


Subject
Written By
Posted
October 02, 2020 09:11AM
October 02, 2020 09:49AM
October 02, 2020 10:15AM
October 03, 2020 10:58AM
Re: "if exists" in clause
October 03, 2020 01:03PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.