9ec8eb952e
All checks were successful
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m11s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m22s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m27s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m29s
linux-x64-gcc / linux-gcc (push) Successful in 1m55s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 3m17s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (pull_request) Successful in 1m9s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (pull_request) Successful in 1m14s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (pull_request) Successful in 1m20s
linux-x64-gcc / linux-gcc (pull_request) Successful in 1m24s
linux-mips64-gcc / linux-gcc-mips64el (push) Successful in 4m26s
linux-mips64-gcc / linux-gcc-mips64el (pull_request) Successful in 1m43s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (pull_request) Successful in 1m55s
linux-hisiv500-gcc / linux-gcc-hisiv500 (pull_request) Successful in 4m8s
21 lines
688 B
Markdown
21 lines
688 B
Markdown
Since `delete` is keyword in C++ that has a different meaning than `delete` in SQL, sqlpp11 calls the method remove. There is no detailed documentation available yet, but here is an example that might help if you have read about [select statements](Select.md) already:
|
|
|
|
```C++
|
|
db(remove_from(tab).where(tab.alpha == tab.alpha + 3));
|
|
```
|
|
|
|
## Removing using multiple tables as condition:
|
|
|
|
```C++
|
|
test_sqlpp::Users usr;
|
|
test_sqlpp::UsersForms usr_forms;
|
|
test_sqlpp::Forms form_;
|
|
|
|
db(remove_from(usr_forms).using_(usr, form_, usr_forms).where(
|
|
usr_forms.iduser == usr.id
|
|
and usr.username == username
|
|
and usr_forms.idform == form_.id
|
|
and form_.name == form_name
|
|
));
|
|
```
|