(十六)爬取豆瓣电影——从0开始大数据开发实战:电影推荐系统(scala版)

beautifulSoup的使用:

 

#合并多个excel表格

https://www.jb51.net/article/132006.htm

 

#清空数据库表中的数据

删除表信息的方式有两种 :
truncate table table_name;
delete * from table_name;

 

#修改已存在的数据库表的id为自增

本来user表的useid不是自增的。  我们把userid改为自增。
执行以下语句就可以把userid自增, 每次加1。
语句:alter table user change userid userid int not null auto_increment; 
 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章