mysql建库建表插入数据
时间:2021-07-01 10:21:17
帮助过:35人阅读
=
"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
mysql建库建表插入数据
标签:var database into 数据 ash password 建库 div 插入数据