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.
我该怎么做
SELECT *, id=1 AS calc_column FROM table
在科尔马?(显然,id=1只是一个简单的例子)。
id=1
Korma has sqlfnwhich can be used in fieldsas show here。如果这不符合您的需要,那么您始终可以raw在主查询中输入原始 sql。
sqlfn
fields
raw