Académique Documents
Professionnel Documents
Culture Documents
Versin 1.0
LABORATORIO 12.
Aplicando Sentencias SQL para la definicin y
manipulacin de la Base de Datos
estudiante: leidy viviana posada alvarez
mysql: [Warning] C:\Program Files (x86)\MySQL\MySQL Server 5.7\bin\mysql.exe:
ignoring option '--no-beep' due to invalid value ''
Enter password: *************
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 18
Server version: 5.7.17-log MySQL Community Server (GPL)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use laboratoriosql;
Database changed
mysql> show tables;
+-----------------------------------+
| Tables_in_laboratoriosql |
+----------------------------------+
| articulo |
| articuloxpedido |
| aseguramientos |
| automotores |
| cliente |
| compaia |
| curso |
| estudiante |
| estudiantexcurso |
| incidentes |
| pedido |
| profesor |
| tiposautomotores |
+-----------------------------+
13 rows in set (0.01 sec)
isertar datos en las tablas.
mysql> insert into profesor values ("63502720","martha","rojas",2,690000);
Query OK, 1 row affected (0.20 sec)
mysql> INSERT INTO `incidentes VALUES ('2', '2011/09/27', 'FLL420', 'giron', '1',
'0', '1');
`> INSERT INTO `incidentes VALUES ('2', '2011/09/27', 'FLL420', 'giron', '1',
'0', '1');
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near
'incidentes VALUES ('2', '2011/09/27', 'FLL420', 'giron', '1', '0', '1')' at line 1
mysql> INSERT INTO `incidentes VALUES ('2', '2011/09/27', 'FLL420', 'giron', '1',
'0', '1');
`> ;
`> INSERT INTO `incidentes VALUES ('2', '2011/09/27', 'FLL420', 'giron', '1',
'0', '1');
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near
'incidentes VALUES ('2', '2011/09/27', 'FLL420', 'giron', '1', '0', '1')' at line 1
mysql> ^C
mysql> INSERT INTO incidentes VALUES ('2', '2011/09/27', 'FLL420', 'giron', '1',
'0', '1');
Query OK, 1 row affected (0.08 sec)