STARTS_WITH

All functions > STRING > STARTS_WITH

Checks if a string starts with a specified prefix.

Syntax

STARTS_WITH(expr, search)
sql

Arguments

ParameterTypeRequiredDescription
stringVARCHARYesString to check
prefixVARCHARYesPrefix to look for

Returns

TRUE if string starts with prefix, FALSE otherwise

Notes

  • Case-sensitive comparison
  • Returns FALSE if prefix is longer than string
  • Returns TRUE if string and prefix are identical

Examples

Last update at: 2025/10/13 10:23:46