dtcmadj31951 2013-04-01 10:02
浏览 20
已采纳

学说不在哪里

I have a table in DB like that

i want to select all except the record contain (x=1, y=1) i mean the id=8

id  |  x  |  y
---------------
1   |  2  |  1
2   |  0  |  1
3   |  5  |  6
4   |  6  |  4
5   |  7  |  4
6   |  7  |  4
7   |  5  |  7
8   |  1  |  1
  • 写回答

5条回答 默认 最新

  • doulao3078 2013-04-01 10:08
    关注

    Try this: see the DEMO

    select * from TableName where 1 NOT IN(x,y)
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?