#!/bin/sh 
HOST=192.168.5.40
USER=abc
PASS=123456
QUERY=`mysql -h$HOST -u$USER -p$PASS << EOF
               use testdb;
               select * from person where name='LiMing';
               exit
               EOF`
echo $QUERY

相关文章:

  • 2021-11-19
  • 2021-07-10
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
猜你喜欢
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-07
相关资源
相似解决方案