Database & utility
Scalar
ord()
Returns the unicode codepoint of the first character of the string
Reference: DuckDB 1.3.2
Alias of unicode()
Arguments & returns
ord(str)
Scalar
| Overload link | str |
Returns |
|---|---|---|
| #01 | VARCHAR |
INTEGER |
Example
Haybarn WASM 2.0.0-rc12 · In your browser
Engine example · Run to view results.
Catalog examples
SELECT
unicode('ü');