What is the purpose of using WHERE 1=1 in SQL statements?
Yeah, it’s typically because it starts out as ‘where 1 = 0’, to force the statement to fail. It’s a more naive way of wrapping it up in a transaction and not committing it at the end, to test your query. (This is the preferred method).