The function 'ASCII'(American standard code for interface and interchange) use to get the numeric value of left most character of a string.

First i made a table in database named 'dbase' with in the reference of mySql(Php myAdmin).I import all the required java packages from java library. After then i declare a class named 'MySqlASCIICode' which extends the 'HttpServlet'. After i use serviceMethod() responsible for the getting request from doGet() method. Then i load all required drivers for database accessing. Then i declare some variables like connection (this will create a bridge between the database and the java code or in other words Frontend and Backend with the help of loaded drivers. The other variable is to declare will be resultset it will use to get the value from required columns and rows into on to the database. The next one will be the preparedStatement the object of the variable is ps. this will be responsible for executing the selected query like executeQuery() as (Select ASCII('mysql')). The next step to use doGet() method which will bring the output on a web browser.

To make output manner able i use 'HTML' tags to get Output in tabular form on a web browser.