Open In App

Node.js MySQL Drop Table

DROP TABLE Query is used to Delete or Drop a table from MySQL Database.

Syntax:



  • This will delete users table. But this will throw error if users table is not there.
    DROP TABLE users
  • This will delete users table only if it exist.
    DROP TABLE IF EXISTS users
  • Article Tags :