shell 实现mysql写入操作

mysql -uroot study -proot << EOF
> insert into top_n_movie(movie,sumprice)values('hello kitty',100);
> EOF

一定要换行

shell 实现mysql写入操作

 

shell语句查询mysql数据库的常用方法

posted @ 2017-07-06 10:00  牵牛花  阅读(576)  评论(0编辑  收藏  举报