使用单引号

有些 SQL 方言,比如 BigQuery 支持使用双引号,但是对于大多数方言来说,双引号最终会变成列名引用。因此,保持使用单引号的习惯更可取:

-- Good
select *
from users
where email = 'example@domain.com'

-- Bad
select *
from users
where email = "example@domain.com"