在脚本文件中,可以将密码用单引号括起来 db2 "connect to testdb user test_user using 'Gb2Zk1!R'" 转载于:https://www.cnblogs.com/darange/p/9368308.html