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

Microsoft MVP

 

WildCard in an UPDATE Statement

 
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 >> WildCard in an UPDATE Statement
Page: [1]
 
hzarabet

 

Posts: 1536
From: New Milford CT USA
Status: offline

 
WildCard in an UPDATE Statement - 5/20/2002 11:42:19   
I have 10 feilds names Player1 through Player10. I would like to updates certain records in each of these fields. How can I get this to work?:

fp_sQry="UPDATE SHL_DeLuxe SET Player%='::PlayerNew::' WHERE Player% = '::Player::' "

Or can it work?

Thanks all

http://www.SigningsHotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada
Spooky

 

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

 
RE: WildCard in an UPDATE Statement - 5/20/2002 22:24:51   
No :(
Youd really need to place each field in the SQL in the scenario you mention.
Is there a rason other than saving time that you need this?

§þððk¥
Database / DRW Q & A
VP-ASP Shopping cart
Spooky Login

(in reply to hzarabet)
hzarabet

 

Posts: 1536
From: New Milford CT USA
Status: offline

 
RE: WildCard in an UPDATE Statement - 5/20/2002 22:31:52   
OK...fair enough.

The only way I know how to do it is with 10 separate UPDATE statements.

Can I set 10 feilds with 1 statement...

fp_sQry="UPDATE SHL_DeLuxe SET Player1='::PlayerNew::' WHERE Player% = '::Player::' ",SET Player2='::PlayerNew::' WHERE Player2 = '::Player::' ",SET Player3='::PlayerNew::' WHERE Player3 = '::Player::' ",...etc.

http://www.SigningsHotline.com lists EVERY upcoming athlete autograph appearance in the US and Canada

Edited by - hzarabet on 05/20/2002 22:32:13

(in reply to hzarabet)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> WildCard in an UPDATE Statement
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