ascii(s): Returns the ascii code of the first character passed to it in character str
postgres=#
postgres=# -- ascii(s): Returns the ascii code of the first character passed to it in character str
postgres=# SELECT ascii('T');
ascii
-------
84
(1 row)
postgres=#