mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
doc: update docs
This commit is contained in:
parent
18b9dece60
commit
63a376ab5e
@ -78,7 +78,7 @@ QueryWrapper query = QueryWrapper.create()
|
|||||||
.and(ACCOUNT.USER_NAME.like("zhang").or(ACCOUNT.USER_NAME.like("li")));
|
.and(ACCOUNT.USER_NAME.like("zhang").or(ACCOUNT.USER_NAME.like("li")));
|
||||||
|
|
||||||
// execute SQL:
|
// execute SQL:
|
||||||
// ELECT * FROM tb_account
|
// SELECT * FROM tb_account
|
||||||
// WHERE tb_account.id >= 100
|
// WHERE tb_account.id >= 100
|
||||||
// AND (tb_account.user_name LIKE '%zhang%' OR tb_account.user_name LIKE '%li%' )
|
// AND (tb_account.user_name LIKE '%zhang%' OR tb_account.user_name LIKE '%li%' )
|
||||||
List<Account> accounts = mapper.selectListByQuery(query);
|
List<Account> accounts = mapper.selectListByQuery(query);
|
||||||
@ -96,7 +96,7 @@ QueryWrapper query = QueryWrapper.create()
|
|||||||
.orderBy(ACCOUNT.ID.desc());
|
.orderBy(ACCOUNT.ID.desc());
|
||||||
|
|
||||||
// execute SQL:
|
// execute SQL:
|
||||||
// ELECT * FROM tb_account
|
// SELECT * FROM tb_account
|
||||||
// WHERE tb_account.id >= 100
|
// WHERE tb_account.id >= 100
|
||||||
// AND (tb_account.user_name LIKE '%zhang%' OR tb_account.user_name LIKE '%li%' )
|
// AND (tb_account.user_name LIKE '%zhang%' OR tb_account.user_name LIKE '%li%' )
|
||||||
// ORDER BY tb_account.id DESC
|
// ORDER BY tb_account.id DESC
|
||||||
|
|||||||
@ -97,7 +97,7 @@ QueryWrapper query = QueryWrapper.create()
|
|||||||
.and(ACCOUNT.USER_NAME.like("张").or(ACCOUNT.USER_NAME.like("李")));
|
.and(ACCOUNT.USER_NAME.like("张").or(ACCOUNT.USER_NAME.like("李")));
|
||||||
|
|
||||||
// 执行 SQL:
|
// 执行 SQL:
|
||||||
// ELECT * FROM tb_account
|
// SELECT * FROM tb_account
|
||||||
// WHERE tb_account.id >= 100
|
// WHERE tb_account.id >= 100
|
||||||
// AND (tb_account.user_name LIKE '%张%' OR tb_account.user_name LIKE '%李%' )
|
// AND (tb_account.user_name LIKE '%张%' OR tb_account.user_name LIKE '%李%' )
|
||||||
List<Account> accounts = accountMapper.selectListByQuery(query);
|
List<Account> accounts = accountMapper.selectListByQuery(query);
|
||||||
@ -116,7 +116,7 @@ QueryWrapper query=QueryWrapper.create()
|
|||||||
.orderBy(ACCOUNT.ID.desc());
|
.orderBy(ACCOUNT.ID.desc());
|
||||||
|
|
||||||
// 执行 SQL:
|
// 执行 SQL:
|
||||||
// ELECT * FROM tb_account
|
// SELECT * FROM tb_account
|
||||||
// WHERE id >= 100
|
// WHERE id >= 100
|
||||||
// AND (user_name LIKE '%张%' OR user_name LIKE '%李%' )
|
// AND (user_name LIKE '%张%' OR user_name LIKE '%李%' )
|
||||||
// ORDER BY `id` DESC
|
// ORDER BY `id` DESC
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user