[root@R610-1 db]# cat clean2.sh
#!/bin/bash
mysql -u root -p112358s -e "use uarticles_2018;show tables;" | egrep -o articles_0[12][0-9]{2} >/tmp/aa.txt

for i in `cat /tmp/aa.txt`
do
echo "TRUNCATE TABLE $i;" >>/home/db/trun_tb.txt
done

相关文章:

  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
猜你喜欢
  • 2021-09-04
  • 2021-09-14
  • 2022-12-23
  • 2021-12-21
  • 2021-10-25
相关资源
相似解决方案