@title: and @desc "AND"符号
(SQLExpr where)
| 156 | * @desc "AND"符号 |
| 157 | */ |
| 158 | public Select and(SQLExpr where) { |
| 159 | SQLSelectQueryBlock queryBlock = select.getSelect().getQueryBlock(); |
| 160 | SQLExpr oldWhere = queryBlock.getWhere(); |
| 161 | if (oldWhere == null) { |
| 162 | throw BaseException.errorCode(SqlParseConstant.CODE_005); |
| 163 | } else { |
| 164 | queryBlock.setWhere(ExpressionBuilder.and(oldWhere, where)); |
| 165 | } |
| 166 | return this; |
| 167 | } |
| 168 | |
| 169 | public Select and(String expr) { |
| 170 | SQLExpr expression = ExpressionBuilder.parse(expr); |