SQL Cookbook
Written in O'Reilly's popular Problem/Solution/Discussion style, the SQL Cookbook is sure to please. Anthony's credo is: "When it comes down to it, we all go to work, we all have bills to pay, and we all want to go home at a reasonable time and enjoy what's still available of our days." The SQL Cookbook moves quickly from problem to solution, saving you time each step of the way.
If you have already deleted all rows from table, you can truncate it. Effect will be the same. Also you can use truncate instead of using delete. Then you can do the same thing with one query.
If you have already deleted all rows from table, you can truncate it. Effect will be the same. Also you can use truncate instead of using delete. Then you can do the same thing with one query.