Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual Dictionary::dropTable()

Description.  Drops a table given an instance of Table.


int dropTable
      const Table& table

In NDB 7.3.5 and later, this method drops all foreign key constraints on the table that is being dropped, whether the dropped table acts as a parent table, child table, or both. (Bug #18069680)

Prior to NDB 8.0.17, an NDB table dropped using this method persisted in the MySQL data dictionary but could not be dropped using DROP TABLE in the mysql client. In NDB 8.0.17 and later, such orphan tables can be dropped using DROP TABLE. (Bug #29125206, Bug #93672)

Parameters.  An instance of Table. See Section 2.3.37, “The Table Class”, for more information.

Return value.  0 on success, -1 on failure.