|
为什么我同一张表里,用其他列为查询条件可以查询到结果,但是其中有一列为查询条件的时候,却没有查询结果,这是什么情况- query.whereEqual({
- qid : ret.qid,
- column : "name",
- value :'多禾馅饼' //之后要做修改,从登陆页面传值过来
- });
- model.findAll({
- class : 'windows',
- qid : queryId
- }
复制代码 比如这样可以查出来结果
- query.whereEqual({
- qid : ret.qid,
- column : "wid",
- value :'01108' //之后要做修改,从登陆页面传值过来
- });
- model.findAll({
- class : 'windows',
- qid : queryId
- }
复制代码 但是这样就不行了,数据表里没有错误啊,要用这一列查询的啊,偏偏就这一列查不出来啊
|
|