要获取 同时 带有标签“ One”和“ Two”的笔记的详细信息,请执行以下操作:
select * from noteswhere note_id in( select note_id from labels where label = 'One' intersect select note_id from labels where label = 'Two')

要获取 同时 带有标签“ One”和“ Two”的笔记的详细信息,请执行以下操作:
select * from noteswhere note_id in( select note_id from labels where label = 'One' intersect select note_id from labels where label = 'Two')