ascii()

Returns an integer that represents the Unicode code point of the first character of the string.

Reference: DuckDB 2.0.0

Arguments & returns

ascii(string)

Scalar
Overload link string Returns
#01 VARCHAR INTEGER

Example

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

Engine example · Run to view results.