Home » Node.js MySQL Select Unique Record

Node.js MySQL Select Unique Record

by Online Tutorials Library

Node.js MySQL SELECT Unique Record

(WHERE Clause)

Retrieve a unique data from the table “employees”.

Create a js file named selectwhere.js having the following data in DBexample folder.

Now open command terminal and run the following command:

Node.js unique record 1


Node.js MySQL Select Wildcard

Retrieve a unique data by using wildcard from the table “employees”.

Create a js file named selectwildcard.js having the following data in DBexample folder.

Now open command terminal and run the following command:

It will retrieve the record where city start with A.

Node.js unique record 2

You may also like