2017-01-24 16 views

答えて

3

それ

#standardSQL 
INSERT INTO yourTable(column1) 
SELECT value FROM (SELECT 1 AS value) 
LEFT JOIN yourTable 
ON column1 = value 
WHERE column1 IS NULL 
行う必要があります
2

これは機能しますか?以下は

INSERT INTO table(column1) 
WITH s AS (SELECT 1 src) 
SELECT src FROM s WHERE NOT EXISTS (
    SELECT * FROM table t WHERE t.column1 = s.src 
) 
関連する問題