Вы находитесь на странице: 1из 13

root@debian:~# mysql -u root -p

Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 4
Server version: 10.1.30-MariaDB Source distribution

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> create databases almacen;


ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds
to your MariaDB server version for the right syntax to use near 'databases almacen' at line 1
MariaDB [(none)]> create database almacen;
ERROR 1007 (HY000): Can't create database 'almacen'; database exists
MariaDB [(none)]> show database;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds
to your MariaDB server version for the right syntax to use near 'database' at line 1
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| almacen |
| information_schema |
| mysql |
| performance_schema |
| phpmyadmin |
| test |
+--------------------+
6 rows in set (0.00 sec)

MariaDB [(none)]> use almacen;


Database changed
MariaDB [almacen]> show tables;
+-------------------+
| Tables_in_almacen |
+-------------------+
| articulos |
| fabricante |
+-------------------+
2 rows in set (0.00 sec)

MariaDB [almacen]> describe fabricante;


+---------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------+-------------+------+-----+---------+-------+
| id_fabricante | int(11) | NO | PRI | NULL | |
| nombre | varchar(30) | YES | | NULL | |
+---------------+-------------+------+-----+---------+-------+
2 rows in set (0.00 sec)
MariaDB [almacen]> describe articulos;
+---------------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------------+-------------+------+-----+---------+-------+
| id_articulo | int(11) | NO | PRI | NULL | |
| nombre | varchar(30) | YES | | NULL | |
| precio | int(11) | YES | | NULL | |
| id_fabricante | int(11) | NO | MUL | NULL | |
+---------------+-------------+------+-----+---------+-------+
4 rows in set (0.01 sec)

MariaDB [almacen]> select * from fabricante;


+---------------+----------+
| id_fabricante | nombre |
+---------------+----------+
| 1 | kingston |
| 2 | adata |
| 3 | logitech |
| 4 | lexar |
| 5 | seagate |
+---------------+----------+
5 rows in set (0.01 sec)

MariaDB [almacen]> select * from articulos;


+-------------+----------------------------+--------+---------------+
| id_articulo | nombre | precio | id_fabricante |
+-------------+----------------------------+--------+---------------+
| 1 | teclado | 100 | 3|
| 2 | disco duro300 gb | 500 | 5|
| 3 | mouse | 80 | 3|
| 4 | memoria usb | 140 | 4|
| 5 | memoria ram | 290 | 1|
| 6 | disco duro extraible 250gb | 650 | 5|
| 7 | memoria usb | 279 | 1|
| 8 | dvd rom | 450 | 2|
| 9 | cd rom | 200 | 2|
| 10 | tarjeta de red | 180 | 3|
+-------------+----------------------------+--------+---------------+
10 rows in set (0.01 sec)

MariaDB [almacen]> select distinct nombre from articulos;


+----------------------------+
| nombre |
+----------------------------+
| teclado |
| disco duro300 gb |
| mouse |
| memoria usb |
| memoria ram |
| disco duro extraible 250gb |
| dvd rom |
| cd rom |
| tarjeta de red |
+----------------------------+
9 rows in set (0.00 sec)

MariaDB [almacen]> select nombre from articulos;


+----------------------------+
| nombre |
+----------------------------+
| teclado |
| disco duro300 gb |
| mouse |
| memoria usb |
| memoria ram |
| disco duro extraible 250gb |
| memoria usb |
| dvd rom |
| cd rom |
| tarjeta de red |
+----------------------------+
10 rows in set (0.00 sec)

MariaDB [almacen]> select * from articulos where id_articulo=5;


+-------------+-------------+--------+---------------+
| id_articulo | nombre | precio | id_fabricante |
+-------------+-------------+--------+---------------+
| 5 | memoria ram | 290 | 1|
+-------------+-------------+--------+---------------+
1 row in set (0.00 sec)

MariaDB [almacen]> select * from articulos where precio >= 200;


+-------------+----------------------------+--------+---------------+
| id_articulo | nombre | precio | id_fabricante |
+-------------+----------------------------+--------+---------------+
| 2 | disco duro300 gb | 500 | 5|
| 5 | memoria ram | 290 | 1|
| 6 | disco duro extraible 250gb | 650 | 5|
| 7 | memoria usb | 279 | 1|
| 8 | dvd rom | 450 | 2|
| 9 | cd rom | 200 | 2|
+-------------+----------------------------+--------+---------------+
6 rows in set (0.00 sec)

MariaDB [almacen]> select * from articulos where precio between 200 and 350;
+-------------+-------------+--------+---------------+
| id_articulo | nombre | precio | id_fabricante |
+-------------+-------------+--------+---------------+
| 5 | memoria ram | 290 | 1|
| 7 | memoria usb | 279 | 1|
| 9 | cd rom | 200 | 2|
+-------------+-------------+--------+---------------+
3 rows in set (0.00 sec)

MariaDB [almacen]> select * from articulos where nombre = 'teclado';


+-------------+---------+--------+---------------+
| id_articulo | nombre | precio | id_fabricante |
+-------------+---------+--------+---------------+
| 1 | teclado | 100 | 3|
+-------------+---------+--------+---------------+
1 row in set (0.00 sec)

MariaDB [almacen]> select * from articulos where nombre = 'memoria ram'or nombre'memoria
usb';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds
to your MariaDB server version for the right syntax to use near ''memoria usb'' at line 1
MariaDB [almacen]> select * from articulos where nombre ='memoria ram'or nombre='memoria
usb';
+-------------+-------------+--------+---------------+
| id_articulo | nombre | precio | id_fabricante |
+-------------+-------------+--------+---------------+
| 4 | memoria usb | 140 | 4|
| 5 | memoria ram | 290 | 1|
| 7 | memoria usb | 279 | 1|
+-------------+-------------+--------+---------------+
3 rows in set (0.00 sec)

MariaDB [almacen]> select * from articulos where nombre like "m%";


+-------------+-------------+--------+---------------+
| id_articulo | nombre | precio | id_fabricante |
+-------------+-------------+--------+---------------+
| 3 | mouse | 80 | 3|
| 4 | memoria usb | 140 | 4|
| 5 | memoria ram | 290 | 1|
| 7 | memoria usb | 279 | 1|
+-------------+-------------+--------+---------------+
4 rows in set (0.00 sec)

MariaDB [almacen]> select * from articulos where precio=100;


+-------------+---------+--------+---------------+
| id_articulo | nombre | precio | id_fabricante |
+-------------+---------+--------+---------------+
| 1 | teclado | 100 | 3|
+-------------+---------+--------+---------------+
1 row in set (0.00 sec)

MariaDB [almacen]> select * from articulos where precio >=200;


+-------------+----------------------------+--------+---------------+
| id_articulo | nombre | precio | id_fabricante |
+-------------+----------------------------+--------+---------------+
| 2 | disco duro300 gb | 500 | 5|
| 5 | memoria ram | 290 | 1|
| 6 | disco duro extraible 250gb | 650 | 5|
| 7 | memoria usb | 279 | 1|
| 8 | dvd rom | 450 | 2|
| 9 | cd rom | 200 | 2|
+-------------+----------------------------+--------+---------------+
6 rows in set (0.00 sec)

MariaDB [almacen]> select avg(precio)from articulos;


+-------------+
| avg(precio) |
+-------------+
| 286.9000 |
+-------------+
1 row in set (0.00 sec)

MariaDB [almacen]> select avg(precio) from articulos where id_fabricante=2;


+-------------+
| avg(precio) |
+-------------+
| 325.0000 |
+-------------+
1 row in set (0.00 sec)

MariaDB [almacen]> select nombre,precio from articulos order by nombre;


+----------------------------+--------+
| nombre | precio |
+----------------------------+--------+
| cd rom | 200 |
| disco duro extraible 250gb | 650 |
| disco duro300 gb | 500 |
| dvd rom | 450 |
| memoria ram | 290 |
| memoria usb | 140 |
| memoria usb | 279 |
| mouse | 80 |
| tarjeta de red | 180 |
| teclado | 100 |
+----------------------------+--------+
10 rows in set (0.00 sec)

MariaDB [almacen]> select * from articulos order by precio desc;


+-------------+----------------------------+--------+---------------+
| id_articulo | nombre | precio | id_fabricante |
+-------------+----------------------------+--------+---------------+
| 6 | disco duro extraible 250gb | 650 | 5|
| 2 | disco duro300 gb | 500 | 5|
| 8 | dvd rom | 450 | 2|
| 5 | memoria ram | 290 | 1|
| 7 | memoria usb | 279 | 1|
| 9 | cd rom | 200 | 2|
| 10 | tarjeta de red | 180 | 3|
| 4 | memoria usb | 140 | 4|
| 1 | teclado | 100 | 3|
| 3 | mouse | 80 | 3|
+-------------+----------------------------+--------+---------------+
10 rows in set (0.00 sec)

MariaDB [almacen]> select nombre,precio from articulos where precio>=250 order by precio
desc,nombre;
+----------------------------+--------+
| nombre | precio |
+----------------------------+--------+
| disco duro extraible 250gb | 650 |
| disco duro300 gb | 500 |
| dvd rom | 450 |
| memoria ram | 290 |
| memoria usb | 279 |
+----------------------------+--------+
5 rows in set (0.00 sec)

MariaDB [almacen]> select * from articulos,fabricante where


articulos.id_fabricante=fabricante.id_fabricante;
+-------------+----------------------------+--------+---------------+---------------+----------+
| id_articulo | nombre | precio | id_fabricante | id_fabricante | nombre |
+-------------+----------------------------+--------+---------------+---------------+----------+
| 1 | teclado | 100 | 3| 3 | logitech |
| 2 | disco duro300 gb | 500 | 5| 5 | seagate |
| 3 | mouse | 80 | 3| 3 | logitech |
| 4 | memoria usb | 140 | 4| 4 | lexar |
| 5 | memoria ram | 290 | 1| 1 | kingston |
| 6 | disco duro extraible 250gb | 650 | 5| 5 | seagate |
| 7 | memoria usb | 279 | 1| 1 | kingston |
| 8 | dvd rom | 450 | 2| 2 | adata |
| 9 | cd rom | 200 | 2| 2 | adata |
| 10 | tarjeta de red | 180 | 3| 3 | logitech |
+-------------+----------------------------+--------+---------------+---------------+----------+
10 rows in set (0.00 sec)

MariaDB [almacen]> select*from articulos,articulo where.id_abricante, nombre;


ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds
to your MariaDB server version for the right syntax to use near '.id_abricante, nombre' at line 1
MariaDB [almacen]> select avg(precio) from articulos where id_fabricante=2; 5|
+-------------+
| avg(precio) |
+-------------+
| 325.0000 |
+-------------+
1 row in set (0.00 sec)

MariaDB [almacen]> select nombre,precio from articulos order by nombre;


+----------------------------+--------+
| nombre | precio |
+----------------------------+--------+
| cd rom | 200 |
| disco duro extraible 250gb | 650 |
| disco duro300 gb | 500 |
| dvd rom | 450 |
| memoria ram | 290 |
| memoria usb | 140 |
| memoria usb | 279 |
| mouse | 80 |
| tarjeta de red | 180 |
| teclado | 100 |
+----------------------------+--------+
10 rows in set (0.00 sec)

MariaDB [almacen]> select * from articulos order by precio desc;


+-------------+----------------------------+--------+---------------+
| id_articulo | nombre | precio | id_fabricante |
+-------------+----------------------------+--------+---------------+
| 6 | disco duro extraible 250gb | 650 | 5|
| 2 | disco duro300 gb | 500 | 5|
| 8 | dvd rom | 450 | 2|
| 5 | memoria ram | 290 | 1|
| 7 | memoria usb | 279 | 1|
| 9 | cd rom | 200 | 2|
| 10 | tarjeta de red | 180 | 3|
| 4 | memoria usb | 140 | 4|
| 1 | teclado | 100 | 3|
| 3 | mouse | 80 | 3|
+-------------+----------------------------+--------+---------------+
10 rows in set (0.00 sec)

MariaDB [almacen]> select nombre,precio from articulos where precio>=250 order by precio
desc,nombre;
+----------------------------+--------+
| nombre | precio |
+----------------------------+--------+
| disco duro extraible 250gb | 650 |
| disco duro300 gb | 500 |
| dvd rom | 450 |
| memoria ram | 290 |
| memoria usb | 279 |
+----------------------------+--------+
5 rows in set (0.00 sec)

MariaDB [almacen]> select * from articulos,fabricante where


articulos.id_fabricante=fabricante.id_articulos;
ERROR 1054 (42S22): Unknown column 'fabricante.id_articulos' in 'where clause'
MariaDB [almacen]> select * from articulos,fabricante where
articulos.id_fabricante=fabricante.id_fabricante;
+-------------+----------------------------+--------+---------------+---------------+----------+
| id_articulo | nombre | precio | id_fabricante | id_fabricante | nombre |
+-------------+----------------------------+--------+---------------+---------------+----------+
| 1 | teclado | 100 | 3| 3 | logitech |
| 2 | disco duro300 gb | 500 | 5| 5 | seagate |
| 3 | mouse | 80 | 3| 3 | logitech |
| 4 | memoria usb | 140 | 4| 4 | lexar |
| 5 | memoria ram | 290 | 1| 1 | kingston |
| 6 | disco duro extraible 250gb | 650 | 5| 5 | seagate |
| 7 | memoria usb | 279 | 1| 1 | kingston |
| 8 | dvd rom | 450 | 2| 2 | adata |
| 9 | cd rom | 200 | 2| 2 | adata |
| 10 | tarjeta de red | 180 | 3| 3 | logitech |
+-------------+----------------------------+--------+---------------+---------------+----------+
10 rows in set (0.00 sec)

MariaDB [almacen]> select*from articulos where precio>=250 order by precio desc, nombre asc;
+-------------+----------------------------+--------+---------------+
| id_articulo | nombre | precio | id_fabricante |
+-------------+----------------------------+--------+---------------+
| 6 | disco duro extraible 250gb | 650 | 5|
| 2 | disco duro300 gb | 500 | 5|
| 8 | dvd rom | 450 | 2|
| 5 | memoria ram | 290 | 1|
| 7 | memoria usb | 279 | 1|
+-------------+----------------------------+--------+---------------+
5 rows in set (0.00 sec)

MariaDB [almacen]> select*from articulos, fabricante where articulos.id_fabricante=fabricante;


ERROR 1054 (42S22): Unknown column 'fabricante' in 'where clause'
MariaDB [almacen]> select*from articulos, fabricante where
articulos.id_fabricante=fabricante.id_fabricante
-> ;
+-------------+----------------------------+--------+---------------+---------------+----------+
| id_articulo | nombre | precio | id_fabricante | id_fabricante | nombre |
+-------------+----------------------------+--------+---------------+---------------+----------+
| 1 | teclado | 100 | 3| 3 | logitech |
| 2 | disco duro300 gb | 500 | 5| 5 | seagate |
| 3 | mouse | 80 | 3| 3 | logitech |
| 4 | memoria usb | 140 | 4| 4 | lexar |
| 5 | memoria ram | 290 | 1| 1 | kingston |
| 6 | disco duro extraible 250gb | 650 | 5| 5 | seagate |
| 7 | memoria usb | 279 | 1| 1 | kingston |
| 8 | dvd rom | 450 | 2| 2 | adata |
| 9 | cd rom | 200 | 2| 2 | adata |
MariaDB [almacen]> select articulos.id_articulo,articulos.nombre,fabricante.nombre from
articulos,fabricante where articulos.id_fabricante = fabricante.id_fabricante;
+-------------+----------------------------+----------+
| id_articulo | nombre | nombre |
+-------------+----------------------------+----------+
| 1 | teclado | logitech |
| 2 | disco duro300 gb | seagate |
| 3 | mouse | logitech |
| 4 | memoria usb | lexar |
| 5 | memoria ram | kingston |
| 6 | disco duro extraible 250gb | seagate |
| 7 | memoria usb | kingston |
| 8 | dvd rom | adata |
| 9 | cd rom | adata |
| 10 | tarjeta de red | logitech |
+-------------+----------------------------+----------+
10 rows in set (0.00 sec)

MariaDB [almacen]> select articulos.nombre,articulos.precio from articulos,fabricante where


fabricante.nombre='logitech' and articulos.id_fabricante=fabricante.id_fabricante;
+----------------+--------+
| nombre | precio |
+----------------+--------+
| teclado | 100 |
| mouse | 80 |
| tarjeta de red | 180 |
+----------------+--------+
3 rows in set (0.00 sec)

MariaDB [almacen]> select articulos.nombre,articulos.precio from articulos,fabricante where


fabricante.nombre='logitech' and articulos.id_fabricante=fabricante.id_fabricante order by
articulos.nombre;
+----------------+--------+
| nombre | precio |
+----------------+--------+
| mouse | 80 |
| tarjeta de red | 180 |
| teclado | 100 |
+----------------+--------+
3 rows in set (0.00 sec)

MariaDB [almacen]> select articulos.nombre,articulos.precio,fabricante.nombre from


articulos,fabricante where fabricante.nombre='lexar' or fabricante.nombre='kingston' and
articulos.id_fabricante=fabricante.id_fabricante order by articulos.precio desc;
+----------------------------+--------+----------+
| nombre | precio | nombre |
+----------------------------+--------+----------+
| disco duro extraible 250gb | 650 | lexar |
| disco duro300 gb | 500 | lexar |
| dvd rom | 450 | lexar |
| memoria ram | 290 | kingston |
| memoria ram | 290 | lexar |
| memoria usb | 279 | kingston |
| memoria usb | 279 | lexar |
| cd rom | 200 | lexar |
| tarjeta de red | 180 | lexar |
| memoria usb | 140 | lexar |
| teclado | 100 | lexar |
| mouse | 80 | lexar |
+----------------------------+--------+----------+
12 rows in set (0.00 sec)

MariaDB [almacen]> insert into articulos values(11,'altavoces',120,2);


Query OK, 1 row affected (0.01 sec)

MariaDB [almacen]> select*from articulos;


+-------------+----------------------------+--------+---------------+
| id_articulo | nombre | precio | id_fabricante |
+-------------+----------------------------+--------+---------------+
| 1 | teclado | 100 | 3|
| 2 | disco duro300 gb | 500 | 5|
| 3 | mouse | 80 | 3|
| 4 | memoria usb | 140 | 4|
| 5 | memoria ram | 290 | 1|
| 6 | disco duro extraible 250gb | 650 | 5|
| 7 | memoria usb | 279 | 1|
| 8 | dvd rom | 450 | 2|
| 9 | cd rom | 200 | 2|
| 10 | tarjeta de red | 180 | 3|
| 11 | altavoces | 120 | 2|
+-------------+----------------------------+--------+---------------+
11 rows in set (0.00 sec)

MariaDB [almacen]> update articulos set nombre='impresora laser' where id_articulo=8;


Query OK, 1 row affected (0.01 sec)
Rows matched: 1 Changed: 1 Warnings: 0

MariaDB [almacen]> select*from articulos;


+-------------+----------------------------+--------+---------------+
| id_articulo | nombre | precio | id_fabricante |
+-------------+----------------------------+--------+---------------+
| 1 | teclado | 100 | 3|
| 2 | disco duro300 gb | 500 | 5|
| 3 | mouse | 80 | 3|
| 4 | memoria usb | 140 | 4|
| 5 | memoria ram | 290 | 1|
| 6 | disco duro extraible 250gb | 650 | 5|
| 7 | memoria usb | 279 | 1|
| 8 | impresora laser | 450 | 2|
| 9 | cd rom | 200 | 2|
| 10 | tarjeta de red | 180 | 3|
| 11 | altavoces | 120 | 2|
+-------------+----------------------------+--------+---------------+
11 rows in set (0.00 sec)

MariaDB [almacen]> update articulos set nombre='dvd rom' where id_articulo=8;


Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0

MariaDB [almacen]> select*from articulos;


+-------------+----------------------------+--------+---------------+
| id_articulo | nombre | precio | id_fabricante |
+-------------+----------------------------+--------+---------------+
| 1 | teclado | 100 | 3|
| 2 | disco duro300 gb | 500 | 5|
| 3 | mouse | 80 | 3|
| 4 | memoria usb | 140 | 4|
| 5 | memoria ram | 290 | 1|
| 6 | disco duro extraible 250gb | 650 | 5|
| 7 | memoria usb | 279 | 1|
| 8 | dvd rom | 450 | 2|
| 9 | cd rom | 200 | 2|
| 10 | tarjeta de red | 180 | 3|
| 11 | altavoces | 120 | 2|
+-------------+----------------------------+--------+---------------+
11 rows in set (0.00 sec)

MariaDB [almacen]> update articulos set nombre='impresora laser' where id_articulo=6;


Query OK, 1 row affected (0.01 sec)
Rows matched: 1 Changed: 1 Warnings: 0

MariaDB [almacen]> select*from articulos;


+-------------+------------------+--------+---------------+
| id_articulo | nombre | precio | id_fabricante |
+-------------+------------------+--------+---------------+
| 1 | teclado | 100 | 3|
| 2 | disco duro300 gb | 500 | 5|
| 3 | mouse | 80 | 3|
| 4 | memoria usb | 140 | 4|
| 5 | memoria ram | 290 | 1|
| 6 | impresora laser | 650 | 5|
| 7 | memoria usb | 279 | 1|
| 8 | dvd rom | 450 | 2|
| 9 | cd rom | 200 | 2|
| 10 | tarjeta de red | 180 | 3|
| 11 | altavoces | 120 | 2|
+-------------+------------------+--------+---------------+
11 rows in set (0.00 sec)
MariaDB [almacen]> update articulos set precio=precio-precio*0.10;
Query OK, 11 rows affected (0.06 sec)
Rows matched: 11 Changed: 11 Warnings: 0

MariaDB [almacen]> select * from articulos;


+--------------+------------------+--------+---------------+
| id_articulos | nombre | precio | id_fabricante |
+--------------+------------------+--------+---------------+
| 1 | teclado | 90 | 3|
| 2 | disco duro 300gb | 450 | 5|
| 3 | mouse | 72 | 3|
| 4 | memoria usb | 126 | 4|
| 5 | memoria ram | 261 | 1|
| 6 | impresora laser | 585 | 5|
| 7 | memoria usb | 251 | 1|
| 8 | dvd rom | 405 | 2|
| 9 | cd rom | 405 | 2|
| 10 | tarjeta de red | 162 | 3|
| 11 | altavoces | 108 | 2|
+--------------+------------------+--------+---------------+
11 rows in set (0.00 sec)

MariaDB [almacen]> update articulos set precio=precio-10 where precio>=300;


Query OK, 4 rows affected (0.09 sec)
Rows matched: 4 Changed: 4 Warnings: 0

MariaDB [almacen]> select * from articulos;


+--------------+------------------+--------+---------------+
| id_articulos | nombre | precio | id_fabricante |
+--------------+------------------+--------+---------------+
| 1 | teclado | 90 | 3|
| 2 | disco duro 300gb | 440 | 5|
| 3 | mouse | 72 | 3|
| 4 | memoria usb | 126 | 4|
| 5 | memoria ram | 261 | 1|
| 6 | impresora laser | 575 | 5|
| 7 | memoria usb | 251 | 1|
| 8 | dvd rom | 395 | 2|
| 9 | cd rom | 395 | 2|
| 10 | tarjeta de red | 162 | 3|
| 11 | altavoces | 108 | 2|
+--------------+------------------+--------+---------------+
11 rows in set (0.00 sec)

MariaDB [almacen]> delete from articulos where id_articulos=6;


Query OK, 1 row affected (0.09 sec)

MariaDB [almacen]> select * from articulos;


+--------------+------------------+--------+---------------+
| id_articulos | nombre | precio | id_fabricante |
+--------------+------------------+--------+---------------+
| 1 | teclado | 90 | 3|
| 2 | disco duro 300gb | 440 | 5|
| 3 | mouse | 72 | 3|
| 4 | memoria usb | 126 | 4|
| 5 | memoria ram | 261 | 1|
| 7 | memoria usb | 251 | 1|
| 8 | dvd rom | 395 | 2|
| 9 | cd rom | 395 | 2|
| 10 | tarjeta de red | 162 | 3|
| 11 | altavoces | 108 | 2|
+--------------+------------------+--------+---------------+
10 rows in set (0.00 sec)

Вам также может понравиться