我想做这个查询:
SELECT * FROM table_one INNER JOIN table_two ON
table_one.column_foreign_id = table_two.id WHERE table_two.column_one
<= table_two.column_two AND table_one.column_one = [param];
我试过了:
QueryBuilder<TableTwo, Integer> tableTwoQb = getTableTwoDao().queryBuilder();
tableTwoQb.selectColumns(TableTwo.COLUMN_ONE, TableTwo.COLUMN_TWO);
QueryBuilder<TableOne, Integer> tableOneQb = getTableOne().queryBuilder();
SelectArg columnOneSelectArg = new SelectArg();
tableOneQb.where().eq(TableOne.COLUMN_ONE, columnOneSelectArg);
tableOneQb.join(tableTwoQb);
但我不能WHERE
在table_two
.
我做错了什么?