通过使用预处理语句,可以避免重复分析/编译/优化周期。
By using a prepared statement you avoid repeating the analyze/compile/optimize cycle.
有时候,使用这种语句比嵌套的for循环或if语句更好,可以减少重复的代码而且结构更清楚。
Using such a statement can sometimes be a better route than nested for loops or if statements to cut down on repetitive code or just for better structure.
当语句需要重复执行时,一般使用这种方法。
This is used when statements have to be executed repeatedly.
在许多数据库应用程序中,我们需要重复发出相同的语句,只不过使用的值有时略有不同。
In many database applications we need to repeatedly issue the same statement, sometimes with slightly different values.
因此,如果一个访问计划被重用,则数据库服务器重复执行相应sql语句所需的CPU资源将减少。
So if an access plan is reused, a database server requires less CPU resources to execute the corresponding SQL statement repeatedly.
然而,每个语句的访问计划基本相同,重复的计算是一种资源浪费。
However, the access plan for all the statements was likely the same, so it was a waste of resources to repeatedly calculate it.
与绝大多数现代编程语言类似,Python支持使用方法将一组语句封装在一起,从而可在必要时重复使用。
Like most modern programming languages, Python supports the use of methods to encapsulate a set of statements that can be used over and over as necessary.
bash中的while循环可以重复执行语句一定的次数,或者一直执行到满足某一条件为止。
A while loop within bash allows you to execute a statement a given number of times, or until a certain condition is met.
它的特征表现为语音、音节、单词或语句的不自主重复或延长及频繁的停顿以致影响语言的节奏顺畅。
It is characterized by the involuntary repetition or prolongation of sounds, syllables, words, or phrases, as well as frequent pauses, impeding the rhythmic flow of speech.
forall语句为阵列中的每一个元素重复另外一个语句。
The FORALL statement repeats another statement for each of the elements in an array.
第三条语句缩放图像,第四条语句用缩放后图像的重复副本填充椭圆。
The third statement scales the image, and the fourth statement fills the ellipse with repeated copies of the scaled image.
如果重复地执行相同的insert语句,则该语句的访问计划(通常)会进入到包缓存中,这样就免除了编译的开销。
If the same INSERT statement is executed repeatedly, its access plan will (usually) be found in the package cache and the compilation cost is avoided.
参数化查询的主要性能好处是优化器可以制定在重复执行语句时能够再使用的存取路径。
The key performance benefit of parameterized queries is that the optimizer can formulate an access path that can be reused over repeated executions of the statement.
如果你想要改进你的发音,请经常暂停比赛并且努力尽可能地重复英语句子。
If you want to improve your pronunciation, pause the game frequently and try to repeat English sentences as well as you can.
如果您想多次重复发出同一条语句,那么odbc_exec函数是一种代价高昂的方法,因为它每次都要编译并执行该语句。
If you want to reissue the same statement multiple times, the odbc_exec function is an expensive approach because it prepares and executes the statement every time.
但是,在最终的输出版本中或调和版本中,我仅看到该语句一次,并没有重复看到。
In the final output version, however, or the reconciliation version, I see the statement only once, not duplicates.
但是,在最终的输出版本中或调和版本中,我仅看到该语句一次,并没有重复看到。
In the final output version, however, or the reconciliation version, I see the statement only once, not duplicates.
应用推荐