navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Question about Delete Quer

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Question about Delete Quer
Page: [1]
 
futurewebboss

 

Posts: 44
Joined: 6/9/2007
Status: offline

 
Question about Delete Quer - 6/21/2007 9:27:58   
Should I expect this query;
DELETE from comments
WHERE (name=::name::)
To delete all records in a table that match the criteria?

Thanks,
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: Question about Delete Quer - 6/21/2007 9:42:35   
Yes you should altho 'name' is a reserved word so it should probably look like this:

WHERE ([name]=::name::)

Hope it helps.

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to futurewebboss)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Question about Delete Quer - 6/21/2007 15:13:08   
Also remember to use apostrophes for text columns, although it may be an idea to post your full SQL.
When testing a "delete" function, always test with a backup database :)

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to rdouglass)
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: Question about Delete Quer - 6/21/2007 17:36:33   
quote:

Also remember to use apostrophes for text columns


:) That's actually more important...

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to Spooky)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Question about Delete Quer
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts