更复杂的初始化脚本能做更多的事,包括声明由服务器维护的全局变量以及设置访问权限等等。
More elaborate initialization scripts can do a lot more, declaring global variables to be maintained by the server, setting up access privileges, and so on.
创建了全局变量之后,如果拥有相应的权限,数据库中的任何会话都可以使用它。
Once a global variable has been created, then any session in the database can use it providing the right privileges are owned.
向所有用户授予对变量的读权限。
应用推荐