Home > Database > Mysql Tutorial > 我写的推荐系统。哈哈。表格什么的自己猜吧

我写的推荐系统。哈哈。表格什么的自己猜吧

WBOY
Release: 2016-06-07 14:57:09
Original
1451 people have browsed it

我写的推荐系统。哈哈。表格什么的自己猜吧。 无 INSERT INTO recommend (SELECT ut.userid,it.itemid, NOW() FROM user_tag ut,item_tag it WHERE EXISTS( SELECT it.tagid FROM item_tag it WHERE it.tagid IN (SELECT ut.tagid FROM user_tag ut)))

我写的推荐系统。哈哈。表格什么的自己猜吧。
INSERT INTO recommend (

SELECT ut.userid,it.itemid, NOW() FROM user_tag ut,item_tag it WHERE 
EXISTS
( 

SELECT it.tagid FROM item_tag it WHERE it.tagid IN (SELECT ut.tagid FROM user_tag ut)

)

)
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template