10. Delete语句
- Java
- Kotlin
BookTable table = BookTable.$;
int affectedRowCount = sqlClient
.createDelete(table)
.where(table.name().eq("GraphQL in Action"))
.execute();
val affectedRowCount = sqlClient
.createDelete(Book::class) {
where(table.name eq "GraphQL in Action")
}
.execute()