1
mirror of https://github.com/CarmJos/EasySQL.git synced 2026-06-04 15:28:20 +08:00

[0.3.7] 版本更新

- `[A]` 为 UpdateBuilder 添加 `#addColumnValue(String,Object)` 方法。
- `[A]` 补充部分Builder的JavaDoc。
This commit is contained in:
2022-02-11 21:19:58 +08:00
parent bcf9d257a9
commit 54166b4289
3 changed files with 31 additions and 30 deletions
@@ -120,7 +120,7 @@ public class EasySQLDemo {
Integer userID = sqlManager.createInsert("users")
.setColumnNames("username", "phone", "email", "registerTime")
.setParams("CarmJos", "18888888888", "carm@carm.cc", TimeDateUtils.getCurrentTime())
.setKeyIndex(1) // 设定自增主键的index,将会在后续返回自增主键
.setReturnGeneratedKey(true)
.execute();
System.out.println("新用户的ID为 " + userID);