1
0x663 2019-12-27 23:17:41 +08:00
IN (1,SELECT `id` FROM `member` WHERE `friendsid` = ( SELECT `id` FROM `member` WHERE `id` = '1' ))
|
2
0x663 2019-12-27 23:25:06 +08:00
上边是开玩笑的
```sql IN (1,SELECT `id` FROM `member` WHERE `friendsid` = ( SELECT `id` FROM `member` WHERE `id` = '1' ) union select 1 as id ) ``` |
3
kukala OP @liushaokang 感谢回复!原来用 union 就行了
|