节约性能的一个sql

SELECT carrid connid
INTO (xcarrid, xconnid)
FROM sflight AS f
WHERE NOT EXISTS ( SELECT * FROM spfli
                    WHERE carrid = f~carrid
                      AND connid = f~connid ).

忘记哪里看到的,或许以后会用到
posted @ 2014-01-22 09:20  胡来  阅读(118)  评论(0编辑  收藏  举报