Javatpoint Logo
Javatpoint Logo

Node.js MySQL Delete Records

The DELETE FROM command is used to delete records from the table.

Example

Delete employee from the table employees where city is Delhi.

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 delete record 1

You can verify the deleted record by using SELECT statement:

Node.js delete record 2





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA