如题所述
1、新建test.sql,如图:
2、新建 test.bat,如图: -S服务器地址 -U登录名 -P登录密码 -i sql路径
3、运行批处理 test.bat ,即可以自动执行 test.sql脚本。