Escolar Documentos
Profissional Documentos
Cultura Documentos
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
+--------------------+
| Database |
+--------------------+
| information_schema |
| administracion |
| escuela |
| informacion |
| mysql |
| phpmyadmin |
| test |
+--------------------+
Database changed
-> );
+-----------+-------------+------+-----+---------+-------+
+-----------+-------------+------+-----+---------+-------+
+-----------+-------------+------+-----+---------+-------+
leph","Borges","Emece",45.50,100);
+----------------------+--------------+-----------+--------+----------+
+----------------------+--------------+-----------+--------+----------+
+----------------------+--------------+-----------+--------+----------+
+----------------------+--------------+-----------+
+----------------------+--------------+-----------+
+----------------------+--------------+-----------+
+----------------------+--------+
| titulo | precio |
+----------------------+--------+
| El aleph | 45.5 |
| Alicia en el pais de | 25 |
+----------------------+--------+
+-----------+----------+
| editorial | cantidad |
+-----------+----------+
| Emece | 100 |
| Planeta | 200 |
| Planeta | 200 |
+-----------+----------+
-> );
leph","Borges","Emece",45.50,100);
+----------------------+---------------+-----------+--------+----------+
+----------------------+---------------+-----------+--------+----------+
+----------------------+---------------+-----------+--------+----------+
+----------------------+---------------+-----------+
+----------------------+---------------+-----------+
+----------------------+---------------+-----------+
+----------------------+--------+
| titulo | precio |
+----------------------+--------+
| El aleph | 45.5 |
| Alicie en el pais de | 25 |
+----------------------+--------+
+-----------+----------+
| editorial | cantidad |
+-----------+----------+
| Emece | 100 |
| Planeta | 200 |
| Planeta | 200 |
+-----------+----------+
-> );
+----------+-------------+------+-----+---------+-------+
+----------+-------------+------+-----+---------+-------+
+----------+-------------+------+-----+---------+-------+
posible","Tom Cruise",120,3);
ta","Julia R.",90,3);
a","Julia R.",90,3);
ta
">
"> ;
">
ta);
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 'julia
R."90.3);
ta","Julia R.",90,3);
ed","China Zorrilla",90,2);
+--------------------+----------------+
| titulo | actor |
+--------------------+----------------+
+--------------------+----------------+
+--------------------+----------+
| titulo | duracion |
+--------------------+----------+
| Mujer Bonita | 90 |
| Elsa y Fred | 90 |
+--------------------+----------+
+--------------------+----------+
| titulo | cantidad |
+--------------------+----------+
| Mision imposible | 3 |
| Mision imposible 2 | 2 |
| Mujer Bonita | 3 |
| Elsa y Fred | 2 |
+--------------------+----------+
mysql>
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
| Database |
+--------------------+
| information_schema |
| administracion |
| mysql |
| phpmyadmin |
| test |
+--------------------+
Database changed
-> );
+--------------+-------------+------+-----+---------+-------+
+--------------+-------------+------+-----+---------+-------+
es ("Ana Acosta","22345678","f","Colon"
-> ;
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 '' at
line 1
+--------------+-------------+------+-----+---------+-------+
+--------------+-------------+------+-----+---------+-------+
+--------------+-------------+------+-----+---------+-------+
corresponds to your MySQL server version for the right syntax to use near 'from
+---------------+-----------+--------------+
+---------------+-----------+--------------+
+---------------+-----------+--------------+
+---------------+-----------+
| nombre | documento |
+---------------+-----------+
+---------------+-----------+
+---------------+-----------+------+---------------+--------------+
+---------------+-----------+------+---------------+--------------+
+---------------+-----------+------+---------------+--------------+
-> );
+-------------+-------------+------+-----+---------+-------+
+-------------+-------------+------+-----+---------+-------+
+-------------+-------------+------+-----+---------+-------+
+--------+-----------+------------------+--------+
+--------+-----------+------------------+--------+
+--------+-----------+------------------+--------+
+-----------+------------------+--------+
+-----------+------------------+--------+
+-----------+------------------+--------+
mysql>
llaneda 135","4458787");
rquiza 333","4458787");
+---------------+----------------+----------+
| nombre | domicilio | telefono |
+---------------+----------------+----------+
+---------------+----------------+----------+
+-------------+
| nombre |
+-------------+
| Juan Torres |
| Juan Torres |
+-------------+
+-----------+
| domicilio |
+-----------+
| Colon 123 |
+-----------+
+----------+
| telefono |
+----------+
| 4458787 |
| 4458787 |
| 4458787 |
+----------+
-> );
+------------+-------------+------+-----+---------+-------+
+------------+-------------+------+-----+---------+-------+
+------------+-------------+------+-----+---------+-------+
3 rows in set (0.08 sec)
planeta");
"planeta");
e Hernandez","Emece");
Molina","Emece");
,"Paidos");
+---------------+----------------+------------+
+---------------+----------------+------------+
+---------------+----------------+------------+
+--------+
| autor |
+--------+
| Borges |
| Borges |
+--------+
+------------+
| editotrial |
+------------+
| Emece |
| Emece |
+------------+
+---------------+
| titulo |
+---------------+
| Martin Fierro |
+---------------+
-> );
-> );
+-------------+-------------+------+-----+---------+-------+
+-------------+-------------+------+-----+---------+-------+
+-------------+-------------+------+-----+---------+-------+
">
"> ;
"> ;
">
"> )
"> );
"> ");
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 '","Ep
);
")' at line 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 '","Ep
")' at line 1
or","Samsung 14",800);
do","ingles Biswal",100);
do","español Biswal",90);
+-----------+
| nombre |
+-----------+
| impresora |
| impresora |
+-----------+
-> ;
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 'show
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 'selec
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 'codig
+-------------+-------------+------+-----+---------+-------+
+-------------+-------------+------+-----+---------+-------+
+-------------+-------------+------+-----+---------+-------+
+--------+-----------+------------------+--------+
+--------+-----------+------------------+--------+
| 5 | teclado | espa | 90 |
+--------+-----------+------------------+--------+
+--------+-----------+------------------+--------+
| 5 | teclado | espa | 90 |
+--------+-----------+------------------+--------+
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 'tecla
mysql>
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
+--------------------+
| Database |
+--------------------+
| information_schema |
| administracion |
| mysql |
| phpmyadmin |
| test |
+--------------------+
Database changed
+--------------------------+
| Tables_in_administracion |
+--------------------------+
| articulos |
| empleados |
| usuarios |
+--------------------------+
-> );
rges","Planeta",12.50);
","Borges","Jose Hernandez","Emece",16.00);
ERROR 1136 (21S01): Column count doesn't match value count at row 1
","Borges","Jose Hernandez","Emece",16.00);
ERROR 1136 (21S01): Column count doesn't match value count at row 1
","Jose Hernandez","Emece",16.00);
"Mario Molina","Emece",35.40);
orges","Paidos",50.90);
+---------------+----------------+-----------+
+---------------+----------------+-----------+
+---------------+----------------+-----------+
+---------------+----------------+-----------+--------+
+---------------+----------------+-----------+--------+
+---------------+----------------+-----------+--------+
+---------------+----------------+-----------+--------+
+---------------+----------------+-----------+--------+
+---------------+----------------+-----------+--------+
+-------------+--------------+-----------+--------+
+-------------+--------------+-----------+--------+
+-------------+--------------+-----------+--------+
+---------------+----------------+-----------+--------+
+---------------+----------------+-----------+--------+
+---------------+----------------+-----------+--------+
mysql>
+--------------------+
| Database |
+--------------------+
| information_schema |
| administracion |
| mysql |
| phpmyadmin |
| test |
+--------------------+
Database changed
+--------------------------+
| Tables_in_administracion |
+--------------------------+
| articulos |
| empleados |
| libros |
| usuarios |
+--------------------------+
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 'artic
ulos' at line 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 '' at
line 1
-> );
+-------------+-------------+------+-----+---------+-------+
+-------------+-------------+------+-----+---------+-------+
+-------------+-------------+------+-----+---------+-------+
3,"monitor","samsung 14",800,10);
4,"teclado","ingles biswal",100,50);
5,"teclado","español biswal",90,50);
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 'table
' at line 1
mysql> select;
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 '' at
line 1
mysql> select
-> ;
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 '' at
line 1
+--------+-----------+------------------+--------+----------+
| 5 | teclado | espa | 90 | 50 |
+--------+-----------+------------------+--------+----------+
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 'impre
resora;
+--------------------------+
| Tables_in_administracion |
+--------------------------+
| articulos |
| empleados |
| libros |
| usuarios |
+--------------------------+
+--------+-----------+------------------+--------+----------+
+--------+-----------+------------------+--------+----------+
| 5 | teclado | espa | 90 | 50 |
+--------+-----------+------------------+--------+----------+
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 'from
+--------+-----------+------------------+--------+----------+
+--------+-----------+------------------+--------+----------+
| 5 | teclado | espa | 90 | 50 |
+--------+-----------+------------------+--------+----------+
+--------+-----------+------------------+--------+----------+
+--------+-----------+------------------+--------+----------+
+--------+-----------+------------------+--------+----------+
+--------+-----------+------------------+--------+----------+
+--------+-----------+------------------+--------+----------+
+--------+-----------+------------------+--------+----------+
+--------+-----------+------------------+--------+----------+
+--------+-----------+------------------+--------+----------+
+--------+-----------+------------------+--------+----------+
0;
+---------+-------------+--------+----------+
+---------+-------------+--------+----------+
+---------+-------------+--------+----------+
1 row in set (0.00 sec)
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 'from
+-----------+------------------+
| nombre | descripcion |
+-----------+------------------+
| monitor | samsung 14 |
| teclado | espa |
+-----------+------------------+
mysql>
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
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 'datba
ses' at line 1
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| administracion |
| mysql |
| phpmyadmin |
| test |
+--------------------+
Database changed
+--------------------------+
| Tables_in_administracion |
+--------------------------+
| articulos |
| empleados |
| libros |
| usuarios |
+--------------------------+
+-------------+-------------+------+-----+---------+-------+
+-------------+-------------+------+-----+---------+-------+
-> );
+--------------+----------------+----------+----------+
+--------------+----------------+----------+----------+
+--------------+----------------+----------+----------+
+--------------+----------------+----------+----------+
+--------------+----------------+----------+----------+
+--------------+----------------+----------+----------+
+------------------+------------+----------+----------+
+------------------+------------+----------+----------+
+------------------+------------+----------+----------+
-> );
+-----------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------+-------------+------+-----+---------+-------+
+-----------+-------------+------+-----+---------+-------+
mysql> ;
ERROR:
No query specified
Alberto","Colon 123",4234567);
"Juan","Avellaneda 135",4458787;
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 '' at
line 1
"Juan","Avellaneda 135",4458787);
Mariana","Urquiza 333",4545454);
Fernando","Urquiza 333",454545);
"Marian","Sarmiento 643",4445544);
Ana","Sucre 309",4252587);
mysql> select
-> ;
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 '' at
line 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 'domic
+----------+---------+-----------+----------+
+----------+---------+-----------+----------+
+----------+---------+-----------+----------+
+----------+---------+-------------+----------+
+----------+---------+-------------+----------+
mysql>
+----------+----------+-------------+----------+
+----------+----------+-------------+----------+
+----------+----------+-------------+----------+
+----------+----------+----------------+----------+
+----------+----------+----------------+----------+
+----------+----------+----------------+----------+
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 'domic
+----------+---------+-----------+----------+
+----------+---------+-----------+----------+
+----------+---------+-----------+----------+
+----------+---------+-------------+----------+
+----------+---------+-------------+----------+
+----------+---------+-------------+----------+
-> );
+------------+--------+
| nombre | clave |
+------------+--------+
| MarioPerez | Marito |
| Marcelo | River |
| Gustavo | River |
+------------+--------+
+------------+--------+
| nombre | clave |
+------------+--------+
| MarioPerez | Marito |
+------------+--------+
-> ;
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 'craat
-> );
+-----------+-------------+------+-----+---------+-------+
+-----------+-------------+------+-----+---------+-------+
+-----------+-------------+------+-----+---------+-------+
lberto","Colon 123",4234567);
Juan","Avellaneda 135",4458787);
ariana","Urquiza 333",4545454);
ose","Urquiza 333",4545454);
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 'where
nombre="juan"' at line 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 'where
nombre="juan"' at line 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 'where
"juan"' at line 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 '-> ti
tulo varchar(20),
' at line 2
mysql>
-> );
+-----------+-------------+------+-----+---------+-------+
+-----------+-------------+------+-----+---------+-------+
+-----------+-------------+------+-----+---------+-------+
ges","Planeta,15.00");
ERROR 1136 (21S01): Column count doesn't match value count at row 1
mysql> insert into agenda(titulo,autor,editorial,precio) values ("El aleph","Bor
ges","Planeta",15.00);
ges","Planeta",15.00);
rges","Planeta",15.00);
rges","Planeta",15.00);
ERROR 1136 (21S01): Column count doesn't match value count at row 1
ERROR 1136 (21S01): Column count doesn't match value count at row 1
ERROR 1136 (21S01): Column count doesn't match value count at row 1
ERROR 1136 (21S01): Column count doesn't match value count at row 1
ERROR 1136 (21S01): Column count doesn't match value count at row 1
ERROR 1136 (21S01): Column count doesn't match value count at row 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 '25.50
)' at line 1
Mario Molina","Emece,26.809");
ERROR 1136 (21S01): Column count doesn't match value count at row 1
Mario Molina","Emece",26.809);
quijote","Borges","Paidos",45.50);
+----------------------+----------------+-----------+--------+
+----------------------+----------------+-----------+--------+
+----------------------+----------------+-----------+--------+
corresponds to your MySQL server version for the right syntax to use near 'delec
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 'delec
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 'delec
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 '"Paen
za"' at line 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 '"<20"
' at line 1
' at line 2
mysql>
-> );
+-----------+-------------+------+-----+---------+-------+
+-----------+-------------+------+-----+---------+-------+
+-----------+-------------+------+-----+---------+-------+
ges","Planeta,15.00");
ERROR 1136 (21S01): Column count doesn't match value count at row 1
ges","Planeta",15.00);
ges","Planeta",15.00);
rges","Planeta",15.00);
rges","Planeta",15.00);
ERROR 1136 (21S01): Column count doesn't match value count at row 1
ERROR 1136 (21S01): Column count doesn't match value count at row 1
ERROR 1136 (21S01): Column count doesn't match value count at row 1
ERROR 1136 (21S01): Column count doesn't match value count at row 1
ERROR 1136 (21S01): Column count doesn't match value count at row 1
ERROR 1136 (21S01): Column count doesn't match value count at row 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 '25.50
)' at line 1
Mario Molina","Emece,26.809");
ERROR 1136 (21S01): Column count doesn't match value count at row 1
mysql> insert into libros(titulo,autor,editorial,precio) values ("Aprenda PHP","
Mario Molina","Emece",26.809);
quijote","Borges","Paidos",45.50);
+----------------------+----------------+-----------+--------+
+----------------------+----------------+-----------+--------+
+----------------------+----------------+-----------+--------+
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 'delec
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 'delec
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 'delec
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 '"Paen
za"' at line 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 '"<20"
' at line 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 'artic
ulos' at line 1
mysql> select*articulos;
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 'artic
ulos' at line 1
+--------+-----------+------------------+--------+----------+
+--------+-----------+------------------+--------+----------+
| 5 | teclado | espa | 90 | 50 |
+--------+-----------+------------------+--------+----------+
"> ;
"> );
"> "=;
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 '' at
line 1
-> );
+------------+--------+
| nombre | clave |
+------------+--------+
| Leonardo | payaso |
| MarioPerez | Marito |
| Marcelo | River |
| Gustavo | River |
+------------+--------+
4 rows in set (0.00 sec)
+------------+------------+
| nombre | clave |
+------------+------------+
| Leonardo | RealMadrid |
| MarioPerez | RealMadrid |
| Marcelo | RealMadrid |
| Gustavo | RealMadrid |
+------------+------------+
+------------+------------+
| nombre | clave |
+------------+------------+
| Leonardo | RealMadrid |
| MarioPerez | Boca |
| Marcelo | RealMadrid |
| Gustavo | RealMadrid |
+------------+------------+
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 ''Gust
+---------------+------------+
| nombre | clave |
+---------------+------------+
| Leonardo | RealMadrid |
| MarioPerez | Boca |
| MarceloDuarte | Marce |
| GustavoGarcia | RealMadrid |
+---------------+------------+
mysql>
mysql> ^V
-> drop table if exists usuarios;
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 '▬
drop table if exists usuarios' at line 1
mysql> drop table if exists usuarios;
Query OK, 0 rows affected (0.06 sec)
mysql> select*usuarios;
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 'usuar
ios' at line 1
mysql> select*from usuarios;
+------------+--------+
| nombre | clave |
+------------+--------+
| Leonardo | payaso |
| MarioPerez | Marito |
| Marcelo | River |
| Gustavo | River |
+------------+--------+
4 rows in set (0.00 sec)
mysql>
mysql> select*usuarios;
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 'usuar
ios' at line 1
mysql> select*from usuarios;
+------------+--------+
| nombre | clave |
+------------+--------+
| Leonardo | payaso |
| MarioPerez | Marito |
| Marcelo | River |
| Gustavo | River |
+------------+--------+
4 rows in set (0.00 sec)
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 '-codi
go autoincremento,
titulo varchar(30),
actor varchar(20),
-> );
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 'autoi
ncremento,
actor varchar(20),
duracion (entero),
clave primaria
)' at line 2
-> ;
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 '(' at
line 1
mysql>
mysql>
-> );
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
-> );
Query OK, 0 rows affected (0.05 sec)
+--------+---------+--------+-----------+
| codigo | titulo | autor | editorial |
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
-> );
-> values('Sertal','Roche',5.2,100);
-> values('Buscapina','Roche',4.10,200);
-> values('Sertal','Roche',5.2,100);
+--------+--------------+-------------+--------+----------+
+--------+--------------+-------------+--------+----------+
-> values('Buscapina','Roche',4.10,200);
-> duracion(entero),
-> );
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 'enter
o(autoincremento),
titulo varchar(30),
autor varchar(20),
duracion(entero),' at line 2
-> );
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 'prima
ria varchar(20)
)' at line 6
mysql> );
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 ')' at
line 1
-> );
+-----------+-------------+------+-----+---------+----------------+
+-----------+-------------+------+-----+---------+----------------+
+-----------+-------------+------+-----+---------+----------------+
mysql>
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
+--------+---------+--------+-----------+
-> );
-> values('Sertal','Roche',5.2,100);
-> values('Buscapina','Roche',4.10,200);
-> values('Sertal','Roche',5.2,100);
+--------+--------------+-------------+--------+----------+
+--------+--------------+-------------+--------+----------+
+--------+--------------+-------------+--------+----------+
-> values('Buscapina','Roche',4.10,200);
-> duracion(entero),
-> );
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 'enter
o(autoincremento),
titulo varchar(30),
autor varchar(20),
duracion(entero),' at line 2
-> );
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 'prima
ria varchar(20)
)' at line 6
mysql> );
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 ')' at
line 1
-> );
+-----------+-------------+------+-----+---------+----------------+
+-----------+-------------+------+-----+---------+----------------+
+-----------+-------------+------+-----+---------+----------------+
50);
+--------+----------+--------+-----------+--------+
+--------+----------+--------+-----------+--------+
+--------+----------+--------+-----------+--------+
+--------+----------------------+--------+-----------+--------+
+--------+----------------------+--------+-----------+--------+
+--------+----------------------+--------+-----------+--------+
+--------+----------------------+--------------+-----------+--------+
+--------+----------------------+--------------+-----------+--------+
+--------+---------------+----------------+-----------+--------+
+--------+---------------+----------------+-----------+--------+
+--------+---------------+----------------+-----------+--------+
-> );
+--------+----------+--------+-----------+--------+
+--------+----------+--------+-----------+--------+
+--------+----------+--------+-----------+--------+
+--------+----------------------+--------+-----------+--------+
+--------+----------------------+--------+-----------+--------+
+--------+----------------------+--------+-----------+--------+
+--------+----------------------+--------------+-----------+--------+
+--------+----------------------+--------------+-----------+--------+
+--------+---------------+----------------+-----------+--------+
+--------+---------------+----------------+-----------+--------+
+--------+---------------+----------------+-----------+--------+
mysql>
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
+--------------------+
| Database |
+--------------------+
| information_schema |
| administracion |
| mysql |
| phpmyadmin |
| test |
+--------------------+
Database changed
-> );
-> values('Buscapina','Roche',null,200);
-> values('Amoxinil',null,25,120);
-> values('Bayaspirina','',0,150);
+--------+
| codigo |
+--------+
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
+--------+
+--------+----------+-------------+--------+----------+
+--------+----------+-------------+--------+----------+
+--------+----------+-------------+--------+----------+
mysql>
Enter password: ***
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
+--------------------+
| Database |
+--------------------+
| information_schema |
| administracion |
| mysql |
| phpmyadmin |
| test |
+--------------------+
Database changed
-> );
Query OK, 0 rows affected (0.03 sec)
-> values('Buscapina','Roche',null,200);
-> values('Amoxinil',null,25,120);
-> values('Bayaspirina','',0,150);
+--------+
| codigo |
+--------+
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
+--------+
+--------+----------+-------------+--------+----------+
+--------+----------+-------------+--------+----------+
+--------+----------+-------------+--------+----------+
+--------+-------------+-------------+--------+----------+
+--------+-------------+-------------+--------+----------+
| 7 | Bayaspirina | | 0 | 150 |
+--------+-------------+-------------+--------+----------+
+--------+-----------+-------------+--------+----------+
+--------+-----------+-------------+--------+----------+
+--------+-----------+-------------+--------+----------+
+--------+-------------+-------------+--------+----------+
+--------+-------------+-------------+--------+----------+
| 7 | Bayaspirina | | 0 | 150 |
+--------+-------------+-------------+--------+----------+
-> values(null,'Bayer',10.20,100);
+--------+------------------+-------------+--------+----------+
+--------+------------------+-------------+--------+----------+
+--------+------------------+-------------+--------+----------+
+--------+------------------+-------------+--------+----------+
+--------+------------------+-------------+--------+----------+
| 7 | Bayaspirina | | 0 | 150 |
+--------+------------------+-------------+--------+----------+
+--------+----------+-------------+--------+----------+
+--------+----------+-------------+--------+----------+
+--------+----------+-------------+--------+----------+
+--------+-------------+-------------+--------+----------+
+--------+-------------+-------------+--------+----------+
| 7 | Bayaspirina | | 0 | 150 |
+--------+-------------+-------------+--------+----------+
+--------+-----------+-------------+--------+----------+
+--------+-----------+-------------+--------+----------+
+--------+-----------+-------------+--------+----------+
+--------+-------------+-------------+--------+----------+
| codigo | nombre | laboratorio | precio | cantidad |
+--------+-------------+-------------+--------+----------+
| 7 | Bayaspirina | | 0 | 150 |
+--------+-------------+-------------+--------+----------+
mysql>
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
+--------------------+
| Database |
+--------------------+
| information_schema |
| administracion |
| mysql |
| phpmyadmin |
| test |
+--------------------+
Database changed
-> );
-> values('Buscapina','Roche',null,200);
-> values('Amoxinil',null,25,120);
+--------+
| codigo |
+--------+
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
+--------+
+--------+----------+-------------+--------+----------+
+--------+----------+-------------+--------+----------+
+--------+----------+-------------+--------+----------+
+--------+-------------+-------------+--------+----------+
+--------+-------------+-------------+--------+----------+
| 7 | Bayaspirina | | 0 | 150 |
+--------+-------------+-------------+--------+----------+
+--------+-----------+-------------+--------+----------+
+--------+-----------+-------------+--------+----------+
+--------+-------------+-------------+--------+----------+
+--------+-------------+-------------+--------+----------+
| 7 | Bayaspirina | | 0 | 150 |
+--------+-------------+-------------+--------+----------+
-> values(null,'Bayer',10.20,100);
+--------+------------------+-------------+--------+----------+
+--------+------------------+-------------+--------+----------+
+--------+------------------+-------------+--------+----------+
5 rows in set (0.00 sec)
+--------+------------------+-------------+--------+----------+
+--------+------------------+-------------+--------+----------+
| 7 | Bayaspirina | | 0 | 150 |
+--------+------------------+-------------+--------+----------+
+--------+----------+-------------+--------+----------+
+--------+----------+-------------+--------+----------+
+--------+----------+-------------+--------+----------+
+--------+-------------+-------------+--------+----------+
+--------+-------------+-------------+--------+----------+
| 7 | Bayaspirina | | 0 | 150 |
+--------+-------------+-------------+--------+----------+
+--------+-----------+-------------+--------+----------+
+--------+-----------+-------------+--------+----------+
+--------+-------------+-------------+--------+----------+
+--------+-------------+-------------+--------+----------+
| 7 | Bayaspirina | | 0 | 150 |
+--------+-------------+-------------+--------+----------+
-> values(null,'Bayer',10.20,100);
+--------+------------------+-------------+--------+----------+
+--------+------------------+-------------+--------+----------+
+--------+------------------+-------------+--------+----------+
+--------+------------------+-------------+--------+----------+
+--------+------------------+-------------+--------+----------+
| 7 | Bayaspirina | | 0 | 150 |
+--------+------------------+-------------+--------+----------+
+--------+------------------+-------------+--------+----------+
+--------+------------------+-------------+--------+----------+
+--------+------------------+-------------+--------+----------+
+--------+------------------+-------------+--------+----------+
+--------+------------------+-------------+--------+----------+
+--------+------------------+-------------+--------+----------+
-> );
+-----------+------------------+------+-----+---------+----------------+
+-----------+------------------+------+-----+---------+----------------+
+-----------+------------------+------+-----+---------+----------------+
-> );
+-----------+------------------+------+-----+---------+----------------+
+-----------+------------------+------+-----+---------+----------------+
+-----------+------------------+------+-----+---------+----------------+
mysql>