我有两张表,一张是用户表,另一张是专业表。用户表中的字段:用户in、用户名、专业表中的userLocation字段:用户in、userSpecialtyselect * from ( select * from user where userLocation = 'value') u inner join specialty s on u.userid = s.userid;或
select * from user u inner join specialty s on u.userid = s.userid where u
我正在寻找一种将记录插入“黑洞”的方法,即成功地执行对某个表的查询,但是使记录消失。就像INSERT INTO NULL,如果你愿意的话。MySQL有黑洞引擎,甲骨文能做类似的事情吗?我唯一能想到的就是:使用INSTEAD OF INSERT和BEGIN NULL; END;创建触发器
这样可以吗?(对性能影响最小的解决方案)