自定义sql查询时
Sql sql = Sqls.create("SELECT taskid FROM gab_summary_taskdir $condition");
sql.setCondition(Cnd.wrap("taskid='ccc693f6-41dc-4282-8dc6-5ba480a98091'"));
.....................................
dao.execute(sql);
执行查询时 :: Nutz SQL Error: 'SELECT taskid FROM gab_summary_taskdir taskid='ccc693f6-41dc-4282-8dc6-5ba480a98091'' //error
非自定义查询时:
TaskDir dir =dao.fetch(TaskDir.class, Cnd.where("taskid", "=", "ccc693f6-41dc-4282-8dc6-5ba480a98091")); //ok
TaskDir dir2 =dao.fetch(TaskDir.class, Cnd.wrap("taskid='ccc693f6-41dc-4282-8dc6-5ba480a98091'")); //ok
执行sql:SELECT taskid FROM gab_summary_taskdir taskid='ccc693f6-41dc-4282-8dc6-5ba480a98091
l两种场景中为什么一个钟缺少where关键字,一个不缺少?