Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
smorty44
Yak Posting Veteran
93 Posts |
Posted - 2007-10-02 : 10:44:37
|
| what is wrong with this statement?Update servicesDeletewhere ticketnum = '0'error message: incorrect syntax near keyword delete |
|
|
elancaster
A very urgent SQL Yakette
1208 Posts |
Posted - 2007-10-02 : 10:46:05
|
| delete from serviceswhere ticketnum = '0' |
 |
|
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2007-10-02 : 11:00:01
|
| You need the table!DELETE FROM servicesWHERE ticketnum = '0'Jim |
 |
|
|
Kristen
Test
22859 Posts |
Posted - 2007-10-02 : 16:00:27
|
I reckon it whouls beUpdate servicesSET DeleteFlag = 1where ticketnum = '0' |
 |
|
|
renu
Starting Member
47 Posts |
Posted - 2007-10-03 : 04:42:48
|
| can i know wats ur actual requirement? |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-10-03 : 05:04:31
|
quote: Originally posted by smorty44 what is wrong with this statement?Update servicesDeletewhere ticketnum = '0'error message: incorrect syntax near keyword delete
Becuase thats not the correct sql Learn SQLhttp://www.sql-tutorial.net/ http://www.firstsql.com/tutor.htm http://www.w3schools.com/sql/default.aspMadhivananFailing to plan is Planning to fail |
 |
|
|
nirene
Yak Posting Veteran
98 Posts |
Posted - 2007-10-03 : 05:09:02
|
| Hello Smorty, If you want to Delete Delete From Table Where Field='VALUE' Else If you want to Update Update Table Set Field='VALUE' Where Field ='VALUE'Nirene |
 |
|
|
|
|
|