Finds the first position of a substring within a string. A simplified version of INSTR.
INT64Diperbarui: 13 Jun 2026STRPOS(value, substring)The string to search within
The substring to search for
1 SELECT STRPOS('Hello World', 'World') as result;
Finds the position of 'World'.
1 SELECT 2 product_name, 3 STRPOS(product_name, 'Pro') > 0 as is_pro_version 4 FROM `project.dataset.products`;
Checks whether a product name contains 'Pro'.
Sudah paham STRPOS? Latih langsung di browser
Latihan interaktif, langsung di browser.