REGEXP_MATCH is great if you know how to use it, but for those who are not sure that regular characters like ".", "$" Or "?" Will not be used. in the search bar, you can use LEFT('str', numeric_expr) or RIGHT('str', numeric_expr) . those. if you have a list of names and you want to return all those that LIKE 's%' you should use:
select name from list where LEFT(name,2)='sa'; (with 2 being the length of "sa")
In addition, if you want to say where the values ββof the LIKE column are foreign, you can change them to 2 for LENGTH(column_with_lookup_strings) and ='sa' for =column_with_lookup_strings , leaving it something like this:
select name from list where LEFT(name,LENGTH(column_with_lookup_strings))= column_with_lookup_strings;
https://cloud.google.com/bigquery/query-reference
tomb
source share