Using the TO_CHAR function in SQL Change Timestamp Output

Publié le: 11 janvier 2020
sur la chaîne: Becoming a Data Scientist
15,439
321

Learn how to use the TO_CHAR function to convert timestamps into "pretty" custom-formatted strings in this step-by-step tutorial!

Website with TO_CHAR formatting options: https://www.becomingads.com/o/to_char

NOTE! TO_CHAR is for Date Formatting, while DATE_TRUNC is useful for date math and filtering!

Learn more about DATE_TRUNC:    • How to use the DATE_TRUNC Function in...  

Queries:
1) SELECT date, TO_CHAR(date,'HH12:MI:SS') FROM table

Get the Pagila Database:    • How to Load a Sample PostgreSQL Datab...  

Support the Channel:
1) Subscribe:
2) DataCamp:
3) Udacity:


Sur cette page du site, vous pouvez voir la vidéo en ligne Using the TO_CHAR function in SQL Change Timestamp Output durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Becoming a Data Scientist 11 janvier 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 15,439 fois et il a aimé 321 téléspectateurs. Bon visionnage!