-- The mysql script inserts the data of one table into another table. If the data comes from two tables, first put the data required by the two tables into one table, and then according to the following sql corresponding to the fixed data is the constant
insert into member_A (
bonus_type_id,
member_id,
member_name,
type_name,
bonus_type)
select
30,
b.member_id,
b.uname,
'cefd',
0
from es_member_B b;
-- mysql date insertion
select from_unixtime(1456985745);
select unix_timestamp(now());
Insert with unix_timestamp (date) -- where date is not passed () default is the current date
Query with from_unixtime (int) -- where the query is
formatted with hours, minutes and seconds: date_format(date,format)
select date_format(from_unixtime(t. create_time),'%Y-%m-%d') from table t
import data script
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326705883&siteId=291194637
Recommended
Ranking