drahoot/db-config/init.sql

15 lines
381 B
MySQL
Raw Normal View History

2024-12-06 09:03:49 +01:00
-- create a table
2024-12-06 13:52:41 +01:00
CREATE TABLE ALUMNOS (
id_alumno INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
nombre TEXT NOT NULL,
apellido1 TEXT,
apellido2 TEXT,
email TEXT NOT NULL
2024-12-06 09:03:49 +01:00
);
-- add test data
2024-12-06 13:52:41 +01:00
INSERT INTO ALUMNOS (nombre, apellido1, apellido2, email)
VALUES ('Raúl', 'Bulgariu', 'Suciu', 'raul@bulgariu.xyz'),
('Pepito', 'Prueba', 'de Ejemplo', 'pepito@gmail.com');
2024-12-06 09:03:49 +01:00