1
0
mirror of https://github.com/russ-p/sqlbuilder.git synced 2025-12-13 16:54:24 +00:00

Create README.md
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2019-07-26 23:34:08 +03:00
committed by GitHub
parent 9976c65fb3
commit 2c6562637e

27
README.md Normal file
View File

@@ -0,0 +1,27 @@
# sqlbuilder
simple sql builder
From
````java
String sql = Sql.select()
.column("id").as("col_id")
.column("code").as("col_code")
.from("test_table")
.where("id = 1")
.groupBy("id")
.orderBy("id").by("code").desc()
.toString();
````
to
````
SELECT
id AS col_id,
code AS col_code
FROM
test_table
WHERE
id = 1
GROUP BY
id
ORDER BY id, code DESC
````