时间:2021-07-01 10:21:17 帮助过:19人阅读
mysql_query("INSERT INTO songs (s_id,name,artwork,views,favorites,duration,genre,owner,descr,download) VALUES ($id,'$name','$artwork',$views,$favorites,'$duration','$genre','$owner','$descr','$download')");
才一周数据库就到500M+了,怎么限制数据库条目为10?
某音乐搜索程序,soundcloud的API,用户每搜索一次,就会有一首歌入库。
mysql_query("INSERT INTO songs (s_id,name,artwork,views,favorites,duration,genre,owner,descr,download) VALUES ($id,'$name','$artwork',$views,$favorites,'$duration','$genre','$owner','$descr','$download')");
才一周数据库就到500M+了,怎么限制数据库条目为10?
1.先count,再delete,再insert 2.存储过程