-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_ele.sql
More file actions
25 lines (21 loc) · 736 Bytes
/
add_ele.sql
File metadata and controls
25 lines (21 loc) · 736 Bytes
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
--CREATE database <database.nanme>
CREATE table students(
student_id varchar(10) NOT NULL,
PRIMARY KEY(student_id),
student_name char(20) NOT NULL,
student_gender char(7) NOT NULL,
student_age numeric(3) NOT NULL,
student_phone numeric(10) NOT NULL,
UNIQUE(student_address),
student_address varchar(50) NOT NULL
);
INSERT INTO students
values
(5406,'tejeswar','male',19,36475900166,'KANCHARAPALEM'),
(5424,'chanukhya','male',19,1117779640,'NAD'),
(5437,'dharma','male',19,6574005578,'STBL'),
(5438,'lokeswar','male',19,6666745639,'CHINNAMUSHIDIVADA'),
(5461,'trushit','male',19,5688123456,'GAJUWAKA'),
(5429,'bharath','male',19,5688745639,'MVP');
SELECT *
FROM students