在shell脚本中登陆Mysql并执行SQL语句

有一个需求是,自动删除MYSQL中的过时数据,只保留最近一周的数据。mysql 在shell脚本中登陆Mysql并执行SQL语句,示例代码以下:web #!/bin/bash # get 7 days ago according to input date. e.g. if input date is 20180410,it will delete those records on or bef
相关文章
相关标签/搜索