1、mysql 数据库表信息

shell脚本中执行sql命令

2、shell脚本(a.sh)信息

#!/bin/sh
mysql -u root << myInsert
    insert into test.t values("LXH",100);
myInsert

3、执行

     ./a.sh

4、 执行结果

shell脚本中执行sql命令

相关文章:

  • 2021-12-12
  • 2021-12-28
  • 2019-11-19
  • 2021-12-15
  • 2021-12-10
  • 2021-12-04
  • 2021-12-10
  • 2020-03-01
猜你喜欢
  • 2021-06-24
  • 2021-12-31
  • 2021-12-10
  • 2021-10-19
  • 2021-12-04
  • 2021-03-30
  • 2021-12-21
相关资源
相似解决方案