在非結構化資料中使用 SEARCH
如果你只需要在非結構化資料中找特定值,就不必費工把資料展開(un-nest)。你可以使用 BigQuery 的 SEARCH 函式在非結構化資料中進行搜尋。
本練習屬於課程
BigQuery 入門
練習說明
- 完成查詢,在
ecommerce.ecomm_orders資料表的order_items欄位中,使用SEARCH函式搜尋包含'0da9ffd92214425d880de3f94e74ce39'的值。
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
-- Finish the query to search across the unstructured data
SELECT
-- Complete the SEARCH function
___(___, ___) as results
-- Add the correct table name
FROM ___
LIMIT 5