【发布时间】:2012-03-02 05:28:35
【问题描述】:
从值中进行选择的 MySQL 方法是什么?
select c from (values (1), (2), (3)) as t(c);
这个想法是能够做这样的事情:
select * from table, (values (1), (2), (3)) as temp(c) where ...;
作为参考,这里是 Postgres 文档: http://www.postgresql.org/docs/9.1/static/sql-values.html
【问题讨论】:
标签: mysql postgresql select