Loading…
SUBSTR(string, start, length)
-- start: position (1-indexed)
-- length: number of characters
SUBSTR('hello world', 1, 5) -- 'hello'
SUBSTR('hello world', 7, 5) -- 'world'
SUBSTR('hello world', 1, 1) -- 'h' (first character)
Create initials from names:
Clean names with TRIM before extracting. Order by id, limit to 10.
Downloading SQL engine… (one-time)
This runs entirely in your browser and is cached for next time.