-
Notifications
You must be signed in to change notification settings - Fork 690
LEFT
Mathias Wulff edited this page Dec 15, 2025
·
3 revisions
LEFT can be used as a string function or in a join clause.
Returns the left part of a character string with the specified number of characters.
Syntax:
LEFT(character_expression, integer_expression)Example:
SELECT LEFT('abcdefg', 2); -- Returns 'ab'This keyword usually used in combination for join: [LEFT JOIN](Left Join).
Syntax:
SELECT ... FROM table1 LEFT [OUTER] JOIN table2© 2014-2026, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo