可能正在使用交叉联接,而不是在table_collection中
select user.id, user.name, data.data_id, data.datafrom user cross join datawhere ( user.user_id, data.data_id) not in ( select user_id, data_id from table_collection)

可能正在使用交叉联接,而不是在table_collection中
select user.id, user.name, data.data_id, data.datafrom user cross join datawhere ( user.user_id, data.data_id) not in ( select user_id, data_id from table_collection)