1 数据准备 create table stocks(id int, date string,price string, company string); insert into table stocks values (1,'2010-01-04','214.01','aapl'), (2,'2010-01-05','214.38','aapl'), (3,'2010-01-06','210.97','aapl'), (4,'2010-01-07','210.58','aapl'), (5,'…