mysql intersect

前端 未结 3 792
野性不改
野性不改 2021-01-24 10:44

I\'m new to mysql so please be kind. I\'m getting the following error for my script and im not sure whats wrong with it.

SELECT uoid 
FROM mint 
WHERE mint_id=\'         


        
相关标签:
3条回答
  • 2021-01-24 11:11

    MySQL does not have an INTERSECT keyword. See this question and this one for suggestions about how to achieve what you're after.

    0 讨论(0)
  • 2021-01-24 11:21

    INTERSECT is not supported in MySQL. You need to restructure your query somehow. You might be able to use a subquery if you version of MySQL supports subqueries.

    0 讨论(0)
  • 2021-01-24 11:24

    This is because intersect only work on same table, not on different tables as you are trying. See this

    In place of intersect use join statement syntax. And INTERSECT does exist in sql

    0 讨论(0)
提交回复
热议问题