Javatpoint Logo
Javatpoint Logo

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




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA