【发布时间】:2026-01-31 15:10:01
【问题描述】:
出于好奇,我想知道使用 [=] 与 [in] 与 [like] 与 [matches] 的速度/效率是否存在差异(仅 1 个值) sql语法。
select field from table where field = value;
对
select field from table where field in (value);
对
select field from table where field like value;
对
select field from table where field matches value;
【问题讨论】:
-
还可以添加:select field from table where field is value;
标签: sql syntax performance