Strange condition in Mysql query -


basically have edit someone's else code , query is:

delete  some_table 1 

googling around didn't find similar.

i can't understand condition. explain me please?

as written, delete rows (because 1 true). if want delete rows, more efficient use truncate table:

truncate table some_table 

one reason might want generate statement where 1 can add additional clauses afterwards.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -