本文介绍了使用Korma限制选择字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想限制从一个选择查询返回的列只有一列,但Korma似乎只是添加额外的列到默认的列,而不是只使用这一个:
I'm trying to restrict the columns returned from a select query to just one column, but Korma seems to just add the additional column to the default ones instead of using just this one:
=> (black_id),games,black_id,games,black_id, 。white_idFROMgames:: []
参考:
=> (干运行(选择游戏))
干运行::选择游戏。石头,游戏。white_id,游戏。black_id b $ b
我想看到的输出是:
SELECTgames。white_idFROMgames;
使用最新的Korma 0.4.0
Using latest Korma 0.4.0
如何获得?
推荐答案
我希望讨论继续到这里:
I expect the discussion to continue there instead: https://github.com/korma/Korma/issues/251
这篇关于使用Korma限制选择字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!