ord()

Returns an INTEGER representing the unicode codepoint of the first character in the string.

Reference: DuckDB 2.0.0

Alias of unicode()

Arguments & returns

ord(string)

Scalar
Overload link string Returns
#01 VARCHAR INTEGER

Example

ord example
SQL
Haybarn WASM 2.0.0-rc12 · In your browser

Engine example · Run to view results.