table space

Páginas: 4 (866 palabras) Publicado: 31 de marzo de 2013
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 190
Server version: 6.0.10-alpha-community MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type'\c' to clear the buffer.

mysql> select * from hacer_viaje;
ERROR 1046 (3D000): No database selected
mysql> use agencia_viaje;
ERROR 1049 (42000): Unknown database 'agencia_viaje'
mysql> useagencia_viajes;
Database changed
mysql> select * from hacer_viaje;
+------------+----------+------------+
| id_cliente | id_viaje | id_destino |
+------------+----------+------------+
| 1| 1 | 1 |
| 10 | 1 | 1 |
| 9 | 1 | 1 |
| 1 | 2 | 2 |
| 2 | 2 | 2 |
| 2| 2 | 3 |
| 1 | 2 | 3 |
| 2 | 1 | 4 |
| 1 | 1 | 4 |
| 3 | 1 | 3 |
| 4| 1 | 3 |
| 5 | 2 | 3 |
| 6 | 2 | 4 |
| 8 | 3 | 4 |
| 5 | 3 | 4 |
| 1| 3 | 4 |
| 6 | 4 | 5 |
| 7 | 4 | 5 |
| 8 | 5 | 5 |
| 9 | 5 | 6 |
| 10| 6 | 6 |
+------------+----------+------------+
21 rows in set (0.00 sec)

mysql> select id_destino,id_viaje,id_cliente from hacer_viaje;
+------------+----------+------------+| id_destino | id_viaje | id_cliente |
+------------+----------+------------+
| 1 | 1 | 1 |
| 1 | 1 | 10 |
| 1 | 1 | 9 || 2 | 2 | 1 |
| 2 | 2 | 2 |
| 3 | 2 | 2 |
| 3 | 2 | 1 |
| 4 | 1 | 2...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Space
  • space
  • Space
  • space
  • Space
  • Space
  • Office Space
  • Head space

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS