[英]SQL command to prompt a pop up box to have a user input a username to add the value to the alter user “username” command
我正在尝试编写一个可以从oracle数据库中解锁用户的脚本。 我可以连接到sqlserver,并手动运行命令,但是id喜欢弹出一个输入框,询问用户名,并将该值输入到alter user username account unlock; 命令。
使用替代变量( &variable_name
)
SQL> ALTER USER &user_name ACCOUNT UNLOCK;
Enter value for user_name: hr
old:ALTER USER &user_name ACCOUNT UNLOCK
new:ALTER USER hr ACCOUNT UNLOCK
User HR altered.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.