This Function Will return the leftmost character of the argument is a multi-byte character, returns the code for that character returns the code for that character.

First i import all the required java packages from java library. Then after, i made a class named 'MySqlORDFunction' extends the 'HttpServlet'.i use the serviceMethod() which is responsible for the getting request from doGet() method. Then after, need to load all the drivers as required. And to declare the mandatory variables like Connection (the variable Connection will use to establish the link between database and java code (actual code). ResultSet the variable resultset does the job to fetch the value from required columns and rows. PreparedStatement this variable use to execute the query like executeQuery() as (Select ORD('mysql')) and after then i use doGet() method to get the output on the web Browser.

To see the result in tabular form we use 'HTML' tags for Impressive looking Output on a web browser.