
26/10/2004, 08:21
|
 | Colaborador | | Fecha de Ingreso: enero-2002 Ubicación: Centro de la república
Mensajes: 8.849
Antigüedad: 23 años, 3 meses Puntos: 146 | |
Dice la documentación de Cast : Cita: ...
CAST(expr AS type)
CONVERT(expr,type)
CONVERT(expr USING transcoding_name)
The CAST() and CONVERT() functions can be used to take a value of one type and produce a value of another type. The type can be one of the following values:
BINARY
CHAR
DATE
DATETIME
SIGNED [INTEGER]
TIME
UNSIGNED [INTEGER]
... Entonces, podría quedar:
Código:
SELECT *
FROM Tipos
ORDER BY CAST(Clave_Cadena AS SIGNED )
Saludos |