Kartier Pohs

Monday, June 15, 2015

CONVERSION FUNCTIONS in SQL

CONVERSION FUNCTIONS  :- The conversion functions convert a value from one data type to another.These functions just return the converted value and does not makes any changes in the database.
The varous conversion functions are described below.

1-Command:- TO_CHAR(date conversion)
Purpose:- This date based function is used for transforming a DATE value into a VARCHAR2 value using a specified date format.
Example:-

   CONVERSION FUNCTIONS in SQL 
2-Command:- TO_CHAR(number conversion)
Purpose:- This number based function is used for transforming numeric value into a varchar2 value optionally using a specified number format.
Example:-

   CONVERSION FUNCTIONS in SQL 
3-Command:- TO_DATE
Purpose:- It converts a character string to its date equivalent.
Example:-

   CONVERSION FUNCTIONS in SQL 
4-Command:- TO_NUMBER
Purpose:- It is used to convert a character value to a number value.
Example:-
   CONVERSION FUNCTIONS in SQL

No comments:

Post a Comment

Copyright 2015 @ Yogesh Prasad