我有一个有查询的字符串。
问题是我不能只是附加到它,在 where 子句之后有一个 group by。
所以说我得到了这个字符串:
var query = "select stuff from db where something = 3 group by stuff"
现在我想追加"somethingelse > 5 AND "
结果:
query = "select stuff from db where somethingelse > 5 AND something = 3 group by stuff"
我需要做什么才能做到这一点?谢谢