Using the TO_CHAR function in SQL Change Timestamp Output

preview_player
Показать описание
Learn how to use the TO_CHAR function to convert timestamps into "pretty" custom-formatted strings in this step-by-step tutorial!

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

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

Support the Channel:
Рекомендации по теме
Комментарии
Автор

The favorite Channel for SQL explanations. Thanks mate.

Dean.unicity
Автор

Love these videos man, short and excellently to the point.

Cityjhn
Автор

Thank you for this! im new in data analysis and this really cleared my mind about the to_char function!! please keep the work, you are the best!!

fiorellamoran
Автор

Very helpful! Thanks! Greetings from Argentina!

niquito
Автор

thank you for this helpful effort. Please could you kindly provide the link to the fuction full list table again? the one you provided is not taking me to the right place. Thank you.

mustaphaadeolaadeyemo
Автор

Your explanation is very clear sir. Please upload more practice...great job....👍

bherlambang
Автор

in the BEGIN statement it's RETURN rental not FROM rental.

kyhcbxs
Автор

hi sir,
1)select to_char('12/06/2022', 'dd/mm/yy') from dual;

2)select to_char(sysdate, 'dd/mm/yy') from dual;

why 2nd one is working while first one is not working?

saikiranpandilla