在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
相關文章
相關標籤/搜索