Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要一种很好的方法来选择一组值作为行。
这是我想做的一个例子:
mysql> select 1 as v union select 2; +---+ | v | +---+ | 1 | | 2 | +---+ 2 rows in set (0.00 sec) mysql>
有没有更好的方法来编写这样的查询?
值列表在查询生成时是已知的。