Insert data into mysql database by using linux bash shell
晚上11:04
#! /bin/bash
U=userid
P=password
insert="insert into table_name(columns1, columns2) values (values1, values2)"
/usr/bin/mysql -u$U -p$P >> eof
$insert
>> sh ***.sh
----------------------------------------------------------------------------------------
table count
/usr/bin/mysql -u$U -p$P >> eof
$insert
>> sh ***.sh
----------------------------------------------------------------------------------------
table count
select count(*) from table_name
table numbers
可用 default value
[Reference]
0 意見