-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit_data.sql
More file actions
86 lines (83 loc) · 1.55 KB
/
init_data.sql
File metadata and controls
86 lines (83 loc) · 1.55 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
CREATE DATABASE IF NOT EXISTS universidad;
USE universidad;
CREATE TABLE IF NOT EXISTS students (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100) NOT NULL,
major VARCHAR(100) NOT NULL,
age INT,
email VARCHAR(100),
year_of_entry INT
);
INSERT INTO
students (name, major, age, email, year_of_entry)
VALUES
(
'Juan Pérez',
'Ingeniería en Sistemas',
20,
'juan.perez@example.com',
2021
),
(
'Ana Gómez',
'Arquitectura',
22,
'ana.gomez@example.com',
2020
),
(
'Luis Fernández',
'Medicina',
21,
'luis.fernandez@example.com',
2021
),
(
'Marta Sánchez',
'Derecho',
23,
'marta.sanchez@example.com',
2019
),
(
'Carlos Ruiz',
'Ingeniería Civil',
24,
'carlos.ruiz@example.com',
2018
),
(
'Laura Torres',
'Psicología',
22,
'laura.torres@example.com',
2020
),
(
'Javier López',
'Ciencias de la Computación',
19,
'javier.lopez@example.com',
2022
),
(
'Sofía Martínez',
'Biología',
23,
'sofia.martinez@example.com',
2019
),
(
'Diego Morales',
'Economía',
21,
'diego.morales@example.com',
2021
),
(
'Patricia Jiménez',
'Comunicación',
22,
'patricia.jimenez@example.com',
2020
);