Documentos de Académico
Documentos de Profesional
Documentos de Cultura
+-------+---------+-----------+------------+--------+-------------------+------+
------------+------------+------+
10 | activo | 37 |
4 | activo | 45 |
6 | activo | 30 |
7 | activo | 32 |
3 | activo | 25 |
1 | activo | 36 |
4 | activo | 41 |
8 | activo | 52 |
7 | activo | 43 |
5 | pensionada | 55 |
4 | activo | 38 |
6 | pensionado | 51 |
+-------+---------+-----------+------------+--------+-------------------+------+
------------+------------+------+
12 rows in set (0.00 sec)
mysql> select clave, sueldo,puesto from empleado where sueldo between 2000 and 7
000;
mysql> select clave, sueldo,puesto from empleados where sueldo between 2000 and
7000;
+-------+--------+---------------+
+-------+--------+---------------+
| 1 | 5500 | Cadista |
| 2 | 6300 | operador |
| 3 | 6300 | chofer |
| 5 | 3535 | limpieza |
+-------+--------+---------------+
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 'by su
+-------+---------+--------+-------------------+
+-------+---------+--------+-------------------+
+-------+---------+--------+-------------------+
mysql> select clave,nombre,sueldo,puesto from empleados where edad between 20 and 40;
+-------+---------+--------+------------+
+-------+---------+--------+------------+
+-------+---------+--------+------------+
+-------+--------+-----------+------------+--------+------------+------+--------
----+-----------+------+
+-------+--------+-----------+------------+--------+------------+------+--------
----+-----------+------+
4 | activo | 45 |
4 | activo | 41 |
4 | activo | 38 |
+-------+--------+-----------+------------+--------+------------+------+--------
----+-----------+------+
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 '='M''
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 '="M"'
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 '="h"'
at line 1
mysql> Select * FROM empleados sexo ='h';
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 '='h''
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 '='h''
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 '="h"'
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 '="h"'
at line 1
+-------+---------+-----------+------------+--------+-------------------+------+
------------+------------+------+
+-------+---------+-----------+------------+--------+-------------------+------+
------------+------------+------+
10 | activo | 37 |
4 | activo | 45 |
6 | activo | 30 |
| 4 | Carlos | calle 01 | 2224747373 | 12500 | subgerente |h |
7 | activo | 32 |
4 | activo | 41 |
7 | activo | 43 |
6 | pensionado | 51 |
+-------+---------+-----------+------------+--------+-------------------+------+
------------+------------+------+
Connection id: 13
mysql>
+-------+---------+-----------+------------+--------+-------------------+------+
------------+-----------+------+
+-------+---------+-----------+------------+--------+-------------------+------+
------------+-----------+------+
10 | activo | 37 |
4 | activo | 45 |
6 | activo | 30 |
7 | activo | 32 |
3 | activo | 25 |
1 | activo | 36 |
4 | activo | 41 |
8 | activo | 52 |
7 | activo | 43 |
+-------+---------+-----------+------------+--------+-------------------+------+
------------+-----------+------+
+-------+--------+-----------+------------+--------+---------------+------+-----
-------+------------+------+
+-------+--------+-----------+------------+--------+---------------+------+-----
-------+------------+------+
4 | activo | 45 |
4 | activo | 41 |
4 | activo | 38 |
6 | pensionado | 51 |
+-------+--------+-----------+------------+--------+---------------+------+-----
-------+------------+------+
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 'edad>
40' at line 1
-----------+------------+------+
+-------+--------+-----------+------------+--------+-------------------+------+-
-----------+------------+------+
4 | activo | 45 |
4 | activo | 41 |
8 | activo | 52 |
7 | activo | 43 |
5 | pensionada | 55 |
6 | pensionado | 51 |
+-------+--------+-----------+------------+--------+-------------------+------+-
-----------+------------+------+
+-------+--------+-----------+------------+--------+------------+------+--------
----+------------+------+
+-------+--------+-----------+------------+--------+------------+------+--------
----+------------+------+
| 2 | Javier | calle 18 | 2147483647 | 6300 | operador | h |
4 | activo | 45 |
3 | activo | 25 |
1 | activo | 36 |
4 | activo | 41 |
5 | pensionada | 55 |
4 | activo | 38 |
+-------+--------+-----------+------------+--------+------------+------+--------
----+------------+------+
+-------+--------+-----------+------------+--------+-------------------+------+-
-----------+------------+------+
+-------+--------+-----------+------------+--------+-------------------+------+-
-----------+------------+------+
7 | activo | 32 |
4 | activo | 41 |
8 | activo | 52 |
| 9 | Pablo | calle 25 | 268747376 | 9200 | jefe de proyectos | h |
7 | activo | 43 |
5 | pensionada | 55 |
+-------+--------+-----------+------------+--------+-------------------+------+-
-----------+------------+------+
mysql>