-e 和 -N

  /usr/local/bin/mysql -h127.0.0.1 -uroot -pxxxx -N -e "use abc; show tables;" 

  -e 后面跟上要执行的SQL语句

  -N 参数是不显示表头 

Mysql -- linux -N -e 命令

 

相关文章:

  • 2021-08-05
  • 2021-12-04
  • 2021-11-11
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-24
  • 2021-07-25
  • 2022-12-23
  • 2021-05-27
相关资源
相似解决方案