Skip to content

Instantly share code, notes, and snippets.

@geshan
Created March 10, 2021 21:52
Show Gist options
  • Select an option

  • Save geshan/f96306ba0d9ede1e4f83f79e1c294ac0 to your computer and use it in GitHub Desktop.

Select an option

Save geshan/f96306ba0d9ede1e4f83f79e1c294ac0 to your computer and use it in GitHub Desktop.
Markdium-Node.js MySQL Transaction: a step-by-step tutorial with a real-life example
INSERT INTO `product` (`id`, `name`, `sku`, `price`, `quantity`) VALUES
(1, 'Toilet paper 10 pack', 'TP0001', 750, 1),
(2, 'Rice 1 Kg', 'RI0002', 140, 500),
(3, 'Pasta 500 g', 'PA0003', 260, 500),
(4, 'Chicken Breast 1 Kg', 'CB0004', 1200, 500),
(5, 'Hand Sanitizer', 'HS0005', 300, 500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment