Professional Documents
Culture Documents
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
+--------------------+
| Database |
+--------------------+
| information_schema |
| agencias |
| alojamientos |
| clases |
| clientes |
| clientes1 |
| clientes2 |
| educa |
| ejemplo |
| ejercicio2 |
| embarques |
| empleado |
| empleados1 |
| empresa |
| escolares |
| escolaresI |
| hola |
| matricula |
| matricula1 |
| mysql |
| papeleria |
| performance_schema |
| phpmyadmin |
| plantillaempresa |
| prueba |
| sys |
+--------------------+
Database changed
+-----+-----------------+--------------------+------+---------+-------+
+-----+-----------------+--------------------+------+---------+-------+
+-----+-----------------+--------------------+------+---------+-------+
+-----+-----------------------+--------------------+------+---------+-------+
+-----+-----------------------+--------------------+------+---------+-------+
+-----+-----------------------+--------------------+------+---------+-------+
Database changed
+---------------+--------+--------+
+---------------+--------+--------+
| 35 | 103 | 15 |
+---------------+--------+--------+
+---------------+--------+--------+
+---------------+--------+--------+
| 35 | 103 | 15 |
+---------------+--------+--------+
Database changed
-> UNION
+---------+
| esueldo |
+---------+
| 53 |
| 52 |
| 51 |
| 25001 |
| 25000 |
| 54 |
| 4000 |
| 200 |
| 500 |
| 0|
| 35000 |
| 45000 |
| 36000 |
+---------+
Database changed
-> UNION
-> select distinct fab, producto from pedidos where importe > 300;
+-------+------------+
| idfab | idproducto |
+-------+------------+
| ACI | 4100Y |
| ACI | 4100Z |
| BIC | 41003 |
| BIC | 41089 |
| FEA | 114 |
| IMM | 773C |
| IMM | 775C |
| IMM | 779C |
| IMM | 887P |
| IMM | 887X |
| QSA | XK47 |
| REI | 2A44G |
| REI | 2A44L |
| REI | 2A44R |
| ACI | 41004 |
| ACI | 41003 |
| ACI | 41002 |
| ACI | 4100X |
| FEA | 112 |
+-------+------------+
mysql>
Database changed
+-------+-----------------------+
| cdept | cnombre |
+-------+-----------------------+
| CIS | GEOMETRÍA |
| CIS | INTROD. A LAS CC. |
| PHIL | EMPIRISMO |
| PHIL | EXISTENCIALISMO |
| PHIL | RACIONALISMO |
| PHIL | SOLIPSISMO |
| THEO | COMUNISMO |
| THEO | ESCOLASTICISMO |
| THEO | FUNDAMENTALISMO |
| THEO | HEDONISMO |
+-------+-----------------------+
+-----+-----------------------+--------------------+------+---------+-------+
+-----+-----------------------+--------------------+------+---------+-------+
+-----+-----------------------+--------------------+------+---------+-------+
10 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 '(ctarifa + 25)/cread AS
TARIFA_MEDIA_POR_HORA
+---------+------------------+
| ctarifa | CREDITOS_TOTALES |
+---------+------------------+
| 200 | 9|
| 176 | 3|
| 150 | 3|
| 140 | 6|
| 100 | 9|
| 90 | 3|
| 50 | 6|
| 0| 15 |
+---------+------------------+
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 '*) < 6' at line 5
mysql>