-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstudentinfosystem.sql
More file actions
32 lines (18 loc) · 899 Bytes
/
studentinfosystem.sql
File metadata and controls
32 lines (18 loc) · 899 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
26
27
28
29
30
31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE IF NOT EXISTS `students` (
`id` int(10) NOT NULL,
`username` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`studentno` int(10) NOT NULL,
`firstname` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`lastname` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`course` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`yrlevel` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`date_joined` date NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
INSERT INTO `students` (`id`, `username`, `password`, `studentno`, `firstname`, `lastname`, `course`, `yrlevel`, `date_joined`)
ALTER TABLE `students`
ADD PRIMARY KEY (`id`);
ALTER TABLE `students`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=18;