Archive for the Category: SQL Functions

ORACLE TO_CHAR

Oracle To_char() is an SQL function which will convert a number or date to string.

Tagged Leave a comment

SQL REVERSE

SQL REVERSE function is used to return reverse of a string. It’s supported by MS SQL Server, MySQL. Oracle supports it too, but maybe not in the documents.

Tagged , , , Leave a comment

SQL LEFT Function

SQL LEFT() function is used to get left part of a string with the length of specified number. It is supported by MySQL, MS SQL Server, Access, but not by Oracle.

Tagged , , Leave a comment

SQL SPACE

SQL SPACE() function is used to return space characters, the number of the characters is indicated by the interger parameter. It is supported by MySQL and MS SQL Server, but not Oracle.

Tagged , , Leave a comment

SQL CHAR

SQL CHAR function is used to return a character of an int ASCII code.

Leave a comment

SQL DATENAME

SQL DATENAME() is a SQL Server function used to return the name or value of the specified datepart of the a date.

Tagged , Leave a comment

SQL ASCII

SQL ASCII function is used to return ASCII code of a character, if the parameter is a string, it will return the ASCII code of the most left character.

Tagged Leave a comment

ORACLE TO_DATE

Oracle To_date() is an SQL function which will convert a string to date. In SQL Server we could use SQL CONVERT function to convert a string to date.

Tagged Leave a comment

SQL CONVERT

The SQL CONVERT() is a SQL Server function which is used to convert a data type to another data type in general. We can also use this function to convert a date/time expression to different formats, or convert a formatted date/time string to date expression.

Tagged , Leave a comment

SQL EXTRACT (Oracle Function)

The SQL EXTRACT() function is used to get a value (year, month, day, etc.) from a date/time expression. It’s supported by MySQL and Oracle, but the syntax is different. In this post we’ll discuss it’s syntax and example in Oracle.

Tagged , Leave a comment