|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Hiya All,
Since I started using SQL Server I write like this DELETE tblSomeTableName WHERE ID = @someID But in this new project they are saying, I have to include "FROM" in the query, like this DELETE FROM tblSomeTableName WHERE ID = @someID So I asked what is the advantage and what is the disadvantage of my query. No answers from them ![]() Please comment. Rajesh Sivaraman.
__________________
e-CVs.net--DubaiDonkey.com--NetaSpace.com--e-jobSearch--TelePortMyJob Job Beaver--Dot Net Disciple |
|
#2
|
||||
|
||||
|
well, I have always used Delete From
not sure about the difference ![]()
__________________
Look! Its a ShemZilla ![]() ![]()
|
|
#3
|
||||
|
||||
|
Same here... Always Delete FROM
|
|
#4
|
||||
|
||||
|
no difference, no advantages or disadvantages. it just make
some people happier if they have to write less code. ![]() |
|
#5
|
||||
|
||||
|
The FROM is just an optional keyword you can add. As SW put it, it makes no difference.
__________________
Keep it Prodigy, Keep it Real |
|
#6
|
|||
|
|||
|
SQL Server 2000
http://msdn2.microsoft.com/en-us/li...47(SQL.80).aspx
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#7
|
||||
|
||||
|
Thanks all for your comments.
Doug I showed them the link which you gave and everyone was happy. Now I can continue with my style DELETE tblRajesh WHERE 1 = 1 ![]() Thanks Rajesh Sivaraman. |
|
#8
|
||||
|
||||
|
I hope you were kidding with the WHERE 1 = 1 ... ?
|
|
#9
|
||||
|
||||
|
Quote:
mm yes Shadow. |
![]() |
| Viewing: ASP Free Forums > Other > ASP Free Lounge > How do you people use a DELETE statement in SQL Server? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|