ord()

Returns the unicode codepoint of the first character of the string

Alias of unicode()

Arguments & returns

ord(str)

Scalar
Overload link str Returns
#01 VARCHAR INTEGER

Example

ord example
SQL
Haybarn WASM 1.5.5-rc3 · In your browser

Engine example · Run to view results.

Catalog examples

SELECT
  unicode('ü');