Home » Node.js MySQL Drop Table

Node.js MySQL Drop Table

by Online Tutorials Library

Node.js MySQL Drop Table

The DROP TABLE command is used to delete or drop a table.

Let’s drop a table named employee2.

Create a js file named “delete” in DBexample folder and put the following data into it:

Now open command terminal and run the following command:

Node.js drop table 1

Verify that the table employee2 is no more in the database.

Node.js drop table 2

You may also like