PLSQL | ASCII Function Last Updated : 18 Sep, 2019 Comments Improve Suggest changes 1 Likes 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 Create Quiz Comment S Shubrodeep Banerjee Follow 1 Improve S Shubrodeep Banerjee Follow 1 Improve Article Tags : SQL ASCII SQL-PL/SQL Explore BasicsWhat is SQL?6 min readSQL Data Types3 min readSQL Operators5 min readSQL Commands | DDL, DQL, DML, DCL and TCL Commands4 min readSQL Database Operations3 min readSQL CREATE TABLE3 min readQueries & OperationsSQL SELECT Query3 min readSQL INSERT INTO Statement4 min readSQL UPDATE Statement3 min readSQL DELETE Statement3 min readSQL - WHERE Clause2 min readAliases in SQL2 min readSQL Joins & FunctionsSQL Joins (Inner, Left, Right and Full Join)4 min readSQL CROSS JOIN1 min readSQL | Date Functions3 min readSQL | String functions6 min readData Constraints & Aggregate FunctionsSQL NOT NULL Constraint2 min readSQL PRIMARY KEY Constraint5 min readSQL Count() Function4 min readSQL SUM() Function2 min readSQL MAX() Function3 min readAVG() Function in SQL2 min readAdvanced SQL TopicsSQL Subquery5 min readWindow Functions in SQL6 min readSQL Stored Procedures7 min readSQL Triggers5 min readSQL Performance Tuning6 min readSQL TRANSACTIONS6 min readDatabase Design & SecurityIntroduction of ER Model9 min readIntroduction to Database Normalization5 min readSQL Injection11 min readSQL Data Encryption5 min readSQL Backup4 min readWhat is Object-Relational Mapping (ORM) in DBMS?7 min read Like