Skip to content

Commit 44f6bd9

Browse files
committed
DDD
1 parent 722286e commit 44f6bd9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

content/docs/guides/table.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,21 @@ movieStore
9696
.execute();
9797
```
9898

99+
Update a record with multiple where clause amd selected columns
100+
101+
```java
102+
103+
// UPDATE movie
104+
// SET directed_by='Martyn Scorsese'
105+
// WHERE id=1 AND title='Fight Club'
106+
movieStore
107+
.update()
108+
.set(directedBy("Martyn Scorsese"))
109+
.where(id().eq(1).and().title().eq("Fight Club"))
110+
.execute();
111+
```
112+
113+
99114
## Delete
100115

101116
Delete all the records in the table

0 commit comments

Comments
 (0)