我正在使用 MYSQL,因为我尝试以下选择查询
SELECT col_A,Col_B FROM table_A WHERE Col_C in (1,2)
此查询显示为 2 条记录,但我尝试了以下查询我只有一条记录
SELECT col_A,Col_B FROM table_A WHERE Col_C in (
SELECT col_A FROM table_B WHERE Col_B)
“SELECT col_A FROM table_B WHERE Col_B”的输出是 1,2