Checks whether a string contains a specified substring. Case-insensitive and supports JSON structures.
BOOLDiperbarui: 13 Jun 2026CONTAINS_SUBSTR(value, substring)The value to check (can be a string, array, or struct)
The substring to search for
1 SELECT CONTAINS_SUBSTR('Hello World', 'WORLD') as result;
Searches for a substring case-insensitively.
1 SELECT * 2 FROM `project.dataset.products` 3 WHERE CONTAINS_SUBSTR(TO_JSON_STRING(attributes), 'wireless');
Searches within JSON attributes.
1 SELECT * 2 FROM `project.dataset.articles` 3 WHERE CONTAINS_SUBSTR(content, 'machine learning') 4 OR CONTAINS_SUBSTR(title, 'machine learning');
Searches articles about machine learning.
Sudah paham CONTAINS_SUBSTR? Latih langsung di browser
Latihan interaktif, langsung di browser.