您好,我有在select语句中使用@>
的代码。我需要将查询从redash对等物更改为bigquery。
我已经搜索了@
,这意味着参数将在后面接受,以防止它被sql注入。
select
u.user_kvs IS NOT NULL AND u.user_kvs @> 'google_authenticator_enabled=>1'
from
sometable
不确定它是做什么的。这就是问题所在。
发布于 2019-05-24 03:24:34
使用@字符后跟标识符,如@param_name。..。
例如:
#standardSQL
SELECT word, word_count
FROM `bigquery-public-data.samples.shakespeare`
WHERE corpus = @corpus
AND word_count >= @min_word_count
ORDER BY word_count DESC;
https://stackoverflow.com/questions/56279389
复制相似问题