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.
我有两张桌子:站:-1,2,3,4 等...工作:- 2,4,5,6 等...
在这里,我需要一个查询来从站表中获取与工作表比较的唯一名称。
select distinct colname from Station where colname IN (SELECT colname FROM work)
SELECT field FROM Station WHERE field NOT IN (SELECT field FROM work)