Skip to content
Advertisement

MS SQL Server Date Month Output

SQL will output a month part as a number but I’d like to out put the 3 char version (Jan, Feb, Mar etc)

My query thus far is

Advertisement

Answer

For each DBMS the way is different

Here are few 4 DBMS’s

MS SQL Server

MySQL

Postgresql

Oracle

So in your case use the appropriate date field instead of current date (which I took as example)

ex. for SQL Server

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement