Skip to content

Commit 2bef0cf

Browse files
committed
fixed readme
1 parent ae0ee18 commit 2bef0cf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,42 +49,42 @@ To get the SQL-statement as a string, call `build()` instead of `print()`
4949

5050
#### Some other examples:
5151

52+
Insert:
5253
```java
5354
Queries.insertInto(PERSONS)
5455
.set(FORENAME, "John")
5556
.set(LASTNAME, "Doe")
5657
.print();
5758
```
58-
Output:
5959
```sql
6060
INSERT INTO `persons` SET `persons`.`forename` = 'John', `persons`.`lastname` = 'Doe'
6161
```
6262

63+
Update:
6364
```java
6465
Queries.update(PERSONS)
6566
.set(FORENAME, "John")
6667
.where(LASTNAME.eq("Doe"))
6768
.print();
6869
```
69-
Output:
7070
```sql
7171
UPDATE `persons` SET `persons`.`forename` = 'John', WHERE `persons`.`lastname` = 'Doe'
7272
```
7373

74+
Delete:
7475
```java
7576
Queries.deleteFrom(PERSONS)
7677
.where(LASTNAME.eq("Doe"))
7778
.print();
7879
```
79-
Output:
8080
```sql
8181
DELETE FROM `persons` WHERE `persons`.`lastname` = 'Doe'
8282
```
8383

84+
Create table:
8485
```java
8586
PERSONS.buildCreateTable().println()
8687
```
87-
Output:
8888
```sql
8989
CREATE TABLE `persons` (`forename` VARCHAR(50) DEFAULT NULL, `lastname` VARCHAR(50) DEFAULT NULL)
9090
```

0 commit comments

Comments
 (0)