In most cases, a procedure needs to operate on different data each time you call it.
在大部分情况下,每次呼叫程序时,都需要处理不同的资料。
Even for a readonly application a global context is not a good choice because you probably want fresh data each time you query the application.
即使是一个只读的应用程序在全球范围内是不是一个好的选择,因为你可能每次都希望新的数据你查询应用程序。
We could have used a prepared statement and just reset the data each time, but we decided to recreate it for each iteration of the loop here for completeness.
我们本可以使用一个预编译语句并且每次重新设置数据,但是为了保持完整性,我们决定在每次循环的时候重新创建它。
应用推荐