-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactividad1.sql
More file actions
28 lines (22 loc) · 832 Bytes
/
actividad1.sql
File metadata and controls
28 lines (22 loc) · 832 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
/* Actividad Práctica */
/* Conectarse con el servidor */
USE bwuyuah9no0japy742v9;
/* Crear tabla con las variables de almacenaje */
CREATE TABLE deportistas(
id INT PRIMARY KEY AUTO_INCREMENT,
nombres VARCHAR(45),
apellidos VARCHAR(45),
correo VARCHAR(150),
contraseña VARCHAR(8),
fecha_nacimiento DATE,
sexo VARCHAR(10),
altura VARCHAR(10),
peso VARCHAR(45)
);
/* Si necesito borrar */
DROP TABLE deportistas;
/* Insertar nueva información */
INSERT INTO deportistas (nombres, apellidos, correo, contraseña, fecha_nacimiento, sexo, altura, peso)
VALUES('Sebastian', 'Quiroz Atehortúa', 'SQA@gmail.com', 'riwi2023', '2000-09-18', 'Masculino', '1.80', '60');
/* Mostrar tabla para verificar datos */
SELECT * FROM deportistas;