想办法做一个"而不是像#34;与bigquery。我试过了
SELECT
e.*
FROM
T1 AS e
JOIN EACH T2 AS a
ON
e.filename NOT LIKE CONCAT(a.filename, "%");
或
SELECT
e.*
FROM
T1 AS e
JOIN T2 AS a
ON
REGEXP_MATCH(e.filename, CONCAT(a.filename, ".*" ))
给出相同的错误
ON clause must be AND of = comparisons of one field name from each table, with all field names prefixed with table name. .
有什么想法吗?
答案 0 :(得分:1)
当您的ON条款违反以下要求时:
ON clause must be AND of = comparisons of one field name from each table, with all field names prefixed with table name. .
你可以使用
SELECT e.* FROM T1 AS e
CROSS JOIN T2 AS a
WHERE <condition>
而不是
SELECT e.* FROM T1 AS e
JOIN T2 AS a ON <condition>