您可以将变量的这些“线程局部”副本看作是与缓存类似,在每次线程需要访问变量的值时帮助它避免检查主存储器。
You could consider these "thread-local" copies of variables to be similar to a cache, helping the thread avoid checking main memory each time it needs to access the variable's value.
首先,可以显式地检查NOT FOUND警告(如果想这样做的话),而不必在局部变量中保存SQLCODE和SQLSTATE。
First of all, the checking for a NOT FOUND warning can be done explicitly, if so desired, without having to save away the SQLCODE and SQLSTATE into local variables.
还要认识到一点:可以将检查添加到把Opts词典条目转换为局部变量的循环中。
Another thing to realize is that you can add the checks to the same loop that you use to create local variables from the Opts dictionary.
应用推荐