Hace un tiempo me tope con un problema: Hacer un substring en PostgreSQL 8.3. Ya que en las versiones anteriores de Postgres, 8.2 y 8.1, usan la función con el formato:
select substr(campo, 1, 4)
En la versión posterior, 8.3, esto ha cambiado y el formato es el siguiente:
select substr(campo::text, 1, 4)
Como lo pueden ver en esta pregunta hecha en la página de postgres, donde encontre la respuesta:
http://archives.postgresql.org/pgsql-es-ayuda/2008-03/msg00510.php
miércoles, 2 de febrero de 2011
Suscribirse a:
Enviar comentarios (Atom)
Visita nuestras apps, Youtube y tiendas online.
César OpenSource Expert, Videos. Youtube channel: https://youtube.com/@rockcesar85 Visita nuestra tienda online: https://shop.latin-chai...
-
Pi, Pi Network and the Pi logo are trademarks of the Pi Community Company. Our webpage, LatinChain Platform: https://latin-chain.com Latin...
-
DONATE HERE, OPTIONAL (DONA AQUÍ, OPCIONAL): https://dev-rockcesar.blogspot.com/2025/03/donations-to-latinchain.html?m=1 Documento (Españo...
-
OpenSource Expert 🇻🇪 Sígueme en mis Redes Sociales (Follow me in my Social Networks): Redes Sociales: Youtube 📺: https://youtube.com/...
No hay comentarios:
Publicar un comentario