Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » SQL Anywhere Server - SQL Reference » Using SQL » SQL functions » Alphabetical list of functions


UNICODE function [String]

Returns an integer containing the Unicode code point of the first character in the string, or NULL if the first character is not a valid encoding.

UNICODE( nchar-string-expression )
  • nchar-string-expression   The NCHAR string whose first character is to be converted to an integer.

See also
Standards and compatibility
  • SQL/2003   Vendor extension.


The following example returns the integer 65536:

SELECT UNICODE(UNISTR( '\u010000data' ));