mysql:3520
From: madara <madara <madara@xxxxxxxxxx>>
Date: Mon, 09 Apr 2001 12:15:26 +0900
Subject: [mysql 03520] Re: 入れ子型でエラー
(keyword,ID)でユニークインデックスだと仮定して select ID ,count(ID) from table where keyword = 'AAA' or keyword = 'BBB' group by ID having count(ID) = 2; でどうでしょうか(試していません) TeruoNagasawa wrote: > データが下のようにに並んでいて、 > # keywordはidごとに無限にあります。 > +----+----------+ > | ID | keyword | > +----+----------+ > | 1 | AAA | > | 1 | BBB | > | 1 | CCC | > | 2 | DDD | > | 2 | EEE | > +----+----------+ -- 班石悦夫 madara@xxxxxxxxxx
3498 2001-04-06 17:30 [TeruoNagasawa <ml@xx] 入れ子型でエラー 3499 2001-04-06 17:29 ┣[Takeharu Masuda <tac] 3501 2001-04-06 17:46 ┃┣["Yamamoto, Akira" <a] 3504 2001-04-06 18:19 ┃┃┗[TeruoNagasawa <ml@xx] 3505 2001-04-06 18:37 ┃┃ ┣["Yamamoto, Akira" <a] -> 3520 2001-04-09 12:15 ┃┃ ┣[madara <madara@xxxxx] 3527 2001-04-10 02:23 ┃┃ ┗[とみたまさひろ <tomm] 3531 2001-04-10 18:04 ┃┃ ┗[TeruoNagasawa <ml@xx] Re: 入れ子型でエラー【お礼】 3503 2001-04-06 18:09 ┃┗[TeruoNagasawa <ml@xx] 3508 2001-04-07 00:08 ┃ ┗[Takeharu Masuda <tac] 3521 2001-04-09 21:48 ┃ ┗[UENO Kazuaki <kazu@x] 3522 2001-04-09 22:25 ┃ ┗[tateyan <tateyan@xxx] 3523 2001-04-09 23:08 ┃ ┗[UENO Kazuaki <kazu@x] 3524 2001-04-09 23:33 ┃ ┗[UENO Kazuaki <kazu@x] 3525 2001-04-10 00:22 ┃ ┗[tateyan <tateyan@xxx] 3526 2001-04-10 00:52 ┃ ┗[tateyan <tateyan@xxx] 3500 2001-04-06 17:46 ┗[Takeharu Masuda <tac]