2

我需要一种很好的方法来选择一组值作为行。

这是我想做的一个例子:

mysql> select 1 as v union select 2;
+---+
| v |
+---+
| 1 |
| 2 |
+---+
2 rows in set (0.00 sec)

mysql>

有没有更好的方法来编写这样的查询?

值列表在查询生成时是已知的。

4

0 回答 0