1
mirror of https://github.com/CarmJos/EasySQL.git synced 2026-06-05 09:01:26 +08:00

[v0.2.10] [A] 添加含默认值的SQL执行函数。

This commit is contained in:
2022-01-24 17:17:47 +08:00
parent 3e05e5764b
commit d29d06053c
14 changed files with 110 additions and 60 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
<parent>
<artifactId>easysql-parent</artifactId>
<groupId>cc.carm.lib</groupId>
<version>0.2.9</version>
<version>0.2.10</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -19,6 +19,7 @@ public class EasySQLDemo {
.addColumn("email", "VARCHAR(32)")
.addColumn("phone", "VARCHAR(16)")
.addColumn("registerTime", "DATETIME NOT NULL")
.addColumn("INDEX `phone`") // 添加索引
.build().execute(null /* 不处理错误 */);
}