Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DELETE All QUERY #130

Open
NitinPrakash opened this issue Oct 5, 2017 · 1 comment
Open

DELETE All QUERY #130

NitinPrakash opened this issue Oct 5, 2017 · 1 comment

Comments

@NitinPrakash
Copy link

How to run DELETE ALL

This works for single row

$row = $db->table[$id];
$affected = $row->delete();

but how to run the equivalent DELETE ALL query in NotORM
DELETE FROM table where id >100

@akkara
Copy link

akkara commented Nov 3, 2017

I think you need to run something like this:

$db->table->where("id > 100")->delete()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants