質問するログイン新規登録

回答編集履歴

1

対照例追記

2016/09/24 11:40

投稿

shingoatail
shingoatail

スコア106

answer CHANGED
@@ -1,2 +1,3 @@
1
1
  select * from chat where id not in ( select chat_id from chat_read where staff_id = 2);
2
- とりあえず解決 というところだとこれでどうでしょうか?
2
+ とりあえず解決 というところだとこれでどうでしょうか?
3
+ 例) staff_id が2の未読の場合