Documentation Home
MySQL 9.2 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 40.7Mb
PDF (A4) - 40.8Mb
Man Pages (TGZ) - 259.6Kb
Man Pages (Zip) - 366.9Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb


27.3.6.5 Table Object

The Table object represents a database table

  • existsInDatabase(): Returns true if the table exists in the current database, otherwise false.

  • count(): Returns the number of rows in this table if it exists in the current database, otherwise throws an error.

  • isView(): Returns true if the table is a view, otherwise false.

    See also Section 27.6, “Using Views”, for further information about database views in MySQL.

  • getName(): Returns the name of the Table (a String).

  • getName(): Returns the Schema in which this table resides.

  • getSession(): Returns the Session object corresponding to the current session.

The Table object and all the methods described in this section were added in MySQL 9.2.0.