mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
update readme
This commit is contained in:
parent
ddedd367b3
commit
5865347153
11
readme.md
11
readme.md
@ -177,11 +177,12 @@ query.select(ACCOUNT.ALL_COLUMNS).from(ACCOUNT)
|
|||||||
|
|
||||||
```java
|
```java
|
||||||
QueryWrapper query=new QueryWrapper()
|
QueryWrapper query=new QueryWrapper()
|
||||||
.select(ACCOUNT.ID
|
.select(
|
||||||
,ACCOUNT.USER_NAME
|
ACCOUNT.ID,
|
||||||
,max(ACCOUNT.BIRTHDAY)
|
ACCOUNT.USER_NAME,
|
||||||
,avg(ACCOUNT.SEX).as("sex_avg"))
|
max(ACCOUNT.BIRTHDAY),
|
||||||
.from(ACCOUNT);
|
avg(ACCOUNT.SEX).as("sex_avg")
|
||||||
|
).from(ACCOUNT);
|
||||||
|
|
||||||
// SQL:
|
// SQL:
|
||||||
// SELECT tb_account.id, tb_account.user_name,
|
// SELECT tb_account.id, tb_account.user_name,
|
||||||
|
|||||||
16
readme_zh.md
16
readme_zh.md
@ -177,11 +177,13 @@ query.select(ACCOUNT.ALL_COLUMNS).from(ACCOUNT)
|
|||||||
|
|
||||||
```java
|
```java
|
||||||
QueryWrapper query=new QueryWrapper()
|
QueryWrapper query=new QueryWrapper()
|
||||||
.select(ACCOUNT.ID
|
.select(
|
||||||
,ACCOUNT.USER_NAME
|
ACCOUNT.ID,
|
||||||
,max(ACCOUNT.BIRTHDAY)
|
ACCOUNT.USER_NAME,
|
||||||
,avg(ACCOUNT.SEX).as("sex_avg"))
|
max(ACCOUNT.BIRTHDAY),
|
||||||
.from(ACCOUNT);
|
avg(ACCOUNT.SEX).as("sex_avg")
|
||||||
|
).from(ACCOUNT);
|
||||||
|
|
||||||
|
|
||||||
// SQL:
|
// SQL:
|
||||||
// SELECT tb_account.id, tb_account.user_name,
|
// SELECT tb_account.id, tb_account.user_name,
|
||||||
@ -308,7 +310,9 @@ account.set("id",100);
|
|||||||
account.set("name","Michael");
|
account.set("name","Michael");
|
||||||
Db.insertRow("tb_account",account);
|
Db.insertRow("tb_account",account);
|
||||||
```
|
```
|
||||||
更多 Db 的方法请查看 [Db.java](./mybatis-flex-core/src/main/java/com/mybatisflex/core/row/Db.java) 。
|
> Db 工具类还提供了更多 增、删、改、查和分页查询等方法。
|
||||||
|
>
|
||||||
|
> 具体参考: [Db.java](./mybatis-flex-core/src/main/java/com/mybatisflex/core/row/Db.java) 。
|
||||||
|
|
||||||
## 更多示例
|
## 更多示例
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user