-
January 11th, 2009, 06:17 AM
#1
update joined table
I have join two tables using inner join as
select A.*,B.fld1 from table1 as A inner join Table 2 as B on A.fld=B.fld
the problem is i need to update a fldname on table1, but my app crashes after it updated the fldname
any suggestions.
rgds
cyrus
-
January 11th, 2009, 02:05 PM
#2
Re: update joined table
You have to update table2 or table1?
Post the code that you have tried, along with the error number, line, and message.
-
January 12th, 2009, 07:41 AM
#3
Re: update joined table
I'm sure a simple Update inner join statement will work..
Code:
Update Table1 as A
Inner Join Table 2 as B on A.fld=B.fld
Set A.fld = @newdata,
B.fld = @newdata
Where
A.fld = @olddata
Gremmy...
Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
WPF Articles : 3D Animation 1 , 2 , 3
Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|