... 在上面的语句中列值都是直接SQL语句中的,今后我们将这类sql成为硬编码SQL 或字面值SQL 使用绑定变量的SQL语句中必须使用相同的名字的绑定变量(bind variables) , ...
基于56个网页-相关网页
在这里,以字面值形式提供文档,但是也可以通过参数标志或主机变量把文档传递给数据库。
Here the document is provided as a literal value, but it could also be passed to the database through a parameter marker or host variable.
一般情况下,不鼓励在SQL中使用字面值,而是主张使用变量或参数,因为字面值会使每个语句具有独特性,这会降低缓存的命中率。
Use of literals instead of variables or parameters is generally discouraged within SQL because it makes each statement unique, which drives down cache hit ratios.
应用推荐