我有兩個表,如行,獲取這在表1,但不是在表2
CREATE TABLE [dbo].[entry]
(
[id] [int] NULL,
[service] [int] NULL,
[sub] [int] NULL
)
的值,
id service sub
1 1 0
2 1 1
3 1 2
第二個表是:
CREATE TABLE [dbo].[service]
(
[service] [int] NULL,
[sub] [int] NULL
)
和其數值爲:
service sub
1 0
1 1
在entry
表中有3行,而在service
表中有兩行。我想這是不是在service
表,但該行是在entry
表
感謝
Venkat
你嘗試過什麼?你有搜索過嗎?這是這裏最常見的問題之一。 –