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


27.3.6.5 Table Object

TheTable 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 alsoSection 27.6, “Using Views”, for further information about database views in MySQL.

  • getName(): Returns the name of theTable (aString).

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

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

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