-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.js
43 lines (36 loc) · 1.08 KB
/
help.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// For Creation of database
// con.connect(function(err) {
// if (err) throw err;
// con.query("CREATE DATABASE studentDB", function (err, result) {
// if (err) throw err;
// console.log('created');
// });
// });
// For Creation of Tables
// con.connect(function(err) {
// if (err) throw err;
// con.query(`CREATE TABLE student(
// rollno VARCHAR(30) PRIMARY KEY,
// name VARCHAR(40),
// semester INT,
// branch VARCHAR(10),
// gender VARCHAR(20),
// dob VARCHAR(20),
// email VARCHAR(50)
// );`, function (err, result) {
// if (err) throw err;
// console.log('created');
// });
// });
// INSERT into Tables
// con.connect(function (err) {
// if (err) throw err;
// con.query(
// `INSERT INTO student VALUES
// ('2001023','HARSH RASTOGI',4,'CSE','MALE','2002-12-15 ','[email protected]')`,
// function (err, result, fields) {
// if (err) throw err;
// console.log(result);
// }
// );
// });