PLSQL | NCHR Function Last Updated : 25 Sep, 2019 Comments Improve Suggest changes Like Article Like Report The PLSQL NCHR function is used for returning the character based on the number code in the national character set or in other words it returns the binary equivalent to the number in the national character set. The value returned by the NCHR function is always of the datatype NVARCHAR2. The NCHR function is equivalent to using the CHR function with the USING NCHAR_CS clause. The parameter passed to the NCHR function takes a NUMBER as an argument, or any value that can be implicitly converted to NUMBER, and returns a character. Syntax: NCHR(number_code) Parameters Used: number_code - It is used to specify the NUMBER code in the national character set used to retrieve the character. Supported Versions of Oracle/PLSQL: Oracle 12c Oracle 11g Oracle 10g Oracle 9i Oracle 8i Example-1: DECLARE Test_value int := 103; BEGIN dbms_output.put_line(NCHR(Test_value)); END; Output: g Example-2: DECLARE Test_value int := 103; BEGIN dbms_output.put_line(CHR(Test_value USING NCHAR_CS)); END; Output g Example-3: DECLARE Test_value int := 187; BEGIN dbms_output.put_line(NCHR(Test_value)); END; Output: ยป Comment More infoAdvertise with us Next Article PLSQL | NCHR Function S Shubrodeep Banerjee Follow Improve Article Tags : SQL SQL-PL/SQL Similar Reads PLSQL | LN Function The LN function is an inbuilt function in PLSQL which is used to return the natural logarithm of a given input number. The natural logarithm of a number is the logarithm of that number to the base e, where e is the mathematical constant approximately equal to 2.718. This is written using the notatio 2 min read PL/SQL Functions PL/SQL functions are reusable blocks of code that can be used to perform specific tasks. They are similar to procedures but must always return a value. A function in PL/SQL contains:Function Header: The function header includes the function name and an optional parameter list. It is the first part o 4 min read PLSQL | LEAST Function The LEAST is an inbuilt function in PLSQL which is used to return the least value from a given list of some expressions. These expressions may be numbers, alphabets etc. Syntax: LEAST(exp1, exp2, ... exp_n) Parameters Used: This function accept some parameters like exp1, exp2, ... exp_n. These each 2 min read PLSQL | TAN Function The TAN function is an inbuilt function in PLSQL which is used to return the tangent of an input number. The tangent is a trigonometric function of an angle and here the input number is the angle expressed in the form of radians. 180 degree is equal to pi radian. Syntax: TAN( number ) Parameters Use 1 min read PLSQL | CHR Function The string in PL/SQL is actually a sequence of characters with an optional size specification. The characters could be numeric, letters, blank, special characters or a combination of all. The CHR Function in PLSQL is the opposite of the ASCII function and is used to return the character based on the 1 min read SQL General Functions SQL general functions are built-in tools provided by SQL databases to perform a variety of operations on data. These functions are crucial for manipulating, analyzing, and transforming data efficiently.In this article, We will learn about the what are the SQL General Functions along with the example 5 min read SQL | Numeric Functions SQL Numeric Functions are essential tools for performing mathematical and arithmetic operations on numeric data. These functions allow you to manipulate numbers, perform calculations, and aggregate data for reporting and analysis purposes. Understanding how to use SQL numeric functions is important 3 min read PLSQL | COSH Function The PLSQL COSH function is used to return the hyperbolic cosine of a numeric value. The COSH function accepts one parameter which is the number whose hyperbolic cosine needs to be calculated. The COSH function returns a value of the numeric data type. This function takes as an argument any numeric d 2 min read PLSQL | TANH Function The PLSQL TANH function is used to return the hyperbolic tangent of a numeric value. The TANH function accepts one parameter which is the number whose hyperbolic tangent needs to be calculated. The TANH function returns a value of the numeric data type. This function takes as an argument any numeric 2 min read PLSQL | CEIL Function The CEIL is an inbuilt function in PLSQL which is used to return the smallest integer value which is either greater than or equal to the given input number. This input number might be in the fraction or in the whole number. Syntax: CEIL(number) Parameters Used: Here the parameter number is the input 2 min read Like