我首先创建两个函数,并在浏览器连接脚本时调用它们。
I start by creating two functions and calling them when the script is hit via a browser. The diagnostic Groovlet is defined in Listing 6.
如果这是一个真实应用程序,您可能会分隔数据库连接脚本和其余部分,并在您的查询中进行各种数据验证。
If this were a real application, you'd probably separate the database connection script from the rest of it and do all kinds of data validation within your query.
可能是脚本未能连接到数据库。
It might be that the script could not connect to the database.
应用推荐