标签:var database into 数据 ash password 建库 div 插入数据
#!/bin/bash user="root" password="123456" mycmd="mysql -u$user -p$password" for dbname in tec stu do $mycmd -e "create database $dbname;" $mycmd -e "use $dbname;create table test(id int,name varchar(18));insert into test values(1,‘rainman‘);" done
标签:var database into 数据 ash password 建库 div 插入数据
原文地址:https://www.cnblogs.com/itgangge888/p/11603864.html