Top "To-char" questions

The TO_CHAR function converts another data type (e.g. NUMBER, DATE) to a text.

extract month and year in oracle

Why does below query work successfully? select to_char(sysdate,'MM-YYYY') from dual; But the following queries give an invalid …

oracle to-char
What is the best way to escape non-format characters in Oracle's to_char?

I am trying to print a date in a select statement, but I need to add a letter to the …

sql oracle to-char
TO_Char number format model in Oracle

I don't understand fully how can I use the to_char function to convert a number to a string with …

sql oracle to-char
What's the equivalent of Oracle's to_char in AS400 DB2 SQL syntax?

I'm trying to display a DATE field fetched from a DB2 instance. In Oracle I'd use something like: to_char(…

oracle db2 ibm-midrange to-char
Compare two date columns in SQL Oracle

I have two columns which are both stored as 'MM/DD/YYYYY HH:MM:SS AM (or PM)'. I'm …

sql oracle to-char