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

 

Update SQL Help.

 
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 >> Update SQL Help.
Page: [1]
 
adamhum

 

Posts: 28
From: Tucson, Az, USA
Status: offline

 
Update SQL Help. - 12/27/2001 13:38:48   
Would you help me with this SQL stuff? Is it possible to use a table to update another table in SQL Server?
I am attempting to update the columns "campname" and "lastused" in the "listA" table, where the column "eaddress" on the "ListB" table matches the column "column1" on the "ListA" Table.

Is it possible to use another table to update a table?

This is my incorrect syntax:)

"UPDATE ListA, ListB
SET ListA.campname = 'Camp2' AND listA.lastused = '12-30-2001'
WHERE listA.eaddress = ListB.column1"

What do you think?

Adam
Spooky

 

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

 
RE: Update SQL Help. - 12/28/2001 16:18:22   
Not really, because column1 isnt defined as a value. The where clause needs a value, just pointing at a column wont do it

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

(in reply to adamhum)
Mojo

 

Posts: 2441
From: Chicago
Status: offline

 
RE: Update SQL Help. - 12/28/2001 18:45:24   
This article may give you some guidance...

http://www.sqlteam.com/item.asp?ItemID=3876

Joe


(in reply to adamhum)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Update SQL Help.
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