Checking whether an item does not exist in another table

前端 未结 4 1331
失恋的感觉
失恋的感觉 2020-12-15 16:07

My tables are set up something like this:

table name: process
fields: name, id_string

table name: value_seach
fields: id_string, value

I w

4条回答
  •  感动是毒
    2020-12-15 17:09

    SELECT 
      name,
      id_string
    FROM process
    WHERE id_string IS NOT NULL AND id_string NOT IN SELECT id_string FROM value_seach
    

提交回复
热议问题