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

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA