Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 WHERE 过滤我的表,以检查 2 个数组是否使用 SQL 共享任何公共项目,但在语法上遇到困难,你们有什么想法吗?
您即将使用“加入”结构
假设您在 2 个表“客户”和“产品”上使用相同的 id,那么 sql 应该是:
Select * from customer c inner join product p on c.id = p.id