Click here to Skip to main content
15,908,274 members
Please Sign up or sign in to vote.
1.33/5 (3 votes)
See more:
Can any one explain the reason
Difference between delete from Table and Delete * from table in sql server
Thanks in Advance
Posted
Comments
PIEBALDconsult 1-Sep-15 12:40pm    
By the way: "If you want to delete all the rows in a table, TRUNCATE TABLE is faster than DELETE. TRUNCATE TABLE is functionally equivalent to DELETE with no WHERE clause, but TRUNCATE TABLE cannot be used with tables referenced by foreign keys."

1 solution

There is none ^_^

In older versions only delete * from table was used, but as delete (not everything) from table made no sense they introduced delete table. They kept the old syntaxt so as not to break any older scripts.

FYI: Delete From table is also valid (and the preferred syntax) ^_^
 
Share this answer
 
v2
Comments
Advay Pandya 2-Sep-15 2:20am    
Good information Andy... 5ed

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900