Ver Mensaje Individual
  #5 (permalink)  
Antiguo 06/08/2010, 09:56
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: select 1 from tabla 1

Exacto.
Código MySQL:
Ver original
  1. mysql> select 1 from personas;
  2. +---+
  3. | 1 |
  4. +---+
  5. | 1 |
  6. | 1 |
  7. | 1 |
  8. | 1 |
  9. | 1 |
  10. +---+
  11. 5 rows in set (0.00 sec)
  12.  
  13. mysql> select 'juan' from personas;
  14. +------+
  15. | juan |
  16. +------+
  17. | juan |
  18. | juan |
  19. | juan |
  20. | juan |
  21. | juan |
  22. +------+
  23. 5 rows in set (0.00 sec)
  24.  
  25. mysql> select *from personas order by 1;
  26. +------+----------------------------------+
  27. | id   | nombre                           |
  28. +------+----------------------------------+
  29. |    1 | aa47f8215c6f30a0dcdb2a36a9f4168e |
  30. |    2 | db54a0c1b7f28e4e87a632f95dec9a75 |
  31. |    2 | algo                             |
  32. |    3 | DANÍEL                           |
  33. |    4 | dániel                           |
  34. +------+----------------------------------+
  35. 5 rows in set (0.00 sec)

saludos
__________________
Without data, You are another person with an opinion.
W. Edwads Deming