shell編程—將數據庫數據導出

第一種方法:mysql echo 'select goods.*,user.phone from test.goods left join test.user on user.id=goods.user_id ' |mysql -uroot >text.txtweb 能夠將連表查詢的數據放入到txt文本中sql 第二種方法:服務器 mysql test  -uroot  -e "select *
相關文章
相關標籤/搜索