The Table
object represents a database table
existsInDatabase()
: Returnstrue
if the table exists in the current database, otherwisefalse
.count()
: Returns the number of rows in this table if it exists in the current database, otherwise throws an error.isView()
: Returnstrue
if the table is a view, otherwisefalse
.See also Section 27.6, “Using Views”, for further information about database views in MySQL.
getName()
: Returns theSchema
in which this table resides.getSession()
: Returns theSession
object corresponding to the current session.
The Table
object and all the methods
described in this section were added in MySQL 9.2.0.