Last active
December 18, 2015 09:39
-
-
Save maravilloso/5763300 to your computer and use it in GitHub Desktop.
Conversiones entre tipos diferentes de datos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT CAST(columna AS MONEY(8,2)) FROM tabla; | |
-- o con el operador :: | |
SELECT idprov, (idprov[3,4]+60)::INT::VARCHAR(5) AS subcod | |
FROM provincias |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment