We will see insertion only. I will cover updation in another article.
To be honest, after reading this article you will be able to insert hundreds or thousands of records very quickly.
CREATE TABLE `customer` (
`customerId` int NOT NULL AUTO_INCREMENT,
`CustomerName` varchar(45) DEFAULT NULL,
`CustomerAddress` varchar(45) DEFAULT NULL,
PRIMARY KEY (`customerId`)
);
npm i mysql2
const mysql2 = require('mysql2/promise')
In this scenario, I am using mysql using promises (async/await). We will not use .then().catch()