Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
select
*
from
dataset.table
where
-- column_1の後ろ4文字と、columns_2の全文字を組み合わせて、曖昧検索用の文字列を作成
id Like concat(substr(column_1, -4), '%', column_2, '%')
select * from dataset.table where -- column_1の後ろ4文字と、columns_2の全文字を組み合わせて、曖昧検索用の文字列を作成 id Like concat(substr(column_1, -4), '%', column_2, '%')
select
  *
from
  dataset.table
where
  -- column_1の後ろ4文字と、columns_2の全文字を組み合わせて、曖昧検索用の文字列を作成
  id Like concat(substr(column_1, -4), '%', column_2, '%')

おすすめの記事