PLSQL | ASCII Function Last Updated : 18 Sep, 2019 Comments Improve Suggest changes Like Article Like Report 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 ASCII Function in PLSQL is used to return the NUMBER code that represents the specified character. Syntax ASCII( single_character ) Parameters Used: single_character - It is used to retrieve the NUMBER code for the specified character. If more than one character is entered, the ASCII function will return the value for the first character and ignore all of the characters after the first. Supported Versions of Oracle/PLSQL: Oracle 12c Oracle 11g Oracle 10g Oracle 9i Oracle 8i Example: DECLARE Test_Char char := 'A'; Test_Char2 char := 'H'; Test_String varchar2(6) := 'Hello'; BEGIN dbms_output.put_line(ASCII(Test_Char)); dbms_output.put_line(ASCII(Test_Char2)); dbms_output.put_line(ASCII(Test_String)); END; Output: 65 72 72 Comment More infoAdvertise with us Next Article PLSQL | ASCII Function S Shubrodeep Banerjee Follow Improve Article Tags : SQL ASCII SQL-PL/SQL Similar Reads PLSQL | ASCIISTR 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 ASCIISTR Function in PLSQL is used for converting a string in any character set to an ASCII string using the 1 min read PLSQL | ASIN Function The PLSQL ASIN function is used to return the arc sine of a number. The ASIN function only one parameter which is a number and the argument number must be in the range of -1 to 1, and the function returns a value in the range of -pi/2 to pi/2, expressed in radians. This function takes as an argument 2 min read ASCII() Function in MySQL In this article, we are going to cover the ASCII function with examples and you will see the ASCII MYSQL query. And will also cover the ASCII code for the given character. Let's discuss one by one. ASCII function in MySQL is used to find the ASCII code of the leftmost character of a character expres 1 min read PostgreSQL - ASCII Function When working with PostgreSQL, you might need to derive the ASCII (American Standard Code for Information Interchange) code of a character. The PostgreSQL ASCII() function is a handy tool for this purpose. In the case of UTF-8 encoding, the ASCII() function returns the Unicode code point of the chara 2 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 Like