Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Laraa@MATISS c:\Users\Laraa\Documents\xamp
# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 8
Server version: 10.4.27-MariaDB mariadb.org binary distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
MariaDB [(none)]> use dbcinemax
Database changed
MariaDB [dbcinemax]> use dbcinemax;
Database changed
MariaDB [dbcinemax]> select * from tblpelicula;
+------------+------------------------+-----------+----------+
| pkpelicula | nombre | genero | duracion |
+------------+------------------------+-----------+----------+
| 1 | Titanic | Romantico | 01:45:00 |
| 2 | Cenicienta | Animada | 03:20:00 |
| 3 | Blanca Nieves | Animada | 01:40:00 |
| 4 | Sirenita | Animada | 01:55:00 |
| 5 | El conjuro | Terror | 02:30:00 |
| 6 | La noche del demonio | Terror | 02:55:00 |
| 7 | Camino hacia el terror | Terror | 03:15:00 |
| 8 | Aquaman | Accion | 03:20:00 |
| 9 | Venom | Accion | 03:55:00 |
| 10 | Divergent | Accion | 02:30:00 |
+------------+------------------------+-----------+----------+
10 rows in set (0.039 sec)
MariaDB [dbcinemax]> create table tblgenero (pkgenero int not null primary key
auto_increment, descripcion varchar (20) not null);
Query OK, 0 rows affected (0.021 sec)
MariaDB [dbcinemax]>