Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
312 Points
62 Posts
Jan 17, 2012 11:47 AM|LINK
siddharth_kcrwant to update [msg] and [friendid] field in friends table where friendid is in members tableTry the following query,update friends set msg = @msg ,friendID =members.id from (select @email as tmpEmail) as temptablejoin members on temptable.tmpEmail = members.email where friends.uid = @uidI dont't find any meanig from the above operation becuase you mentioed,siddharth_kcr"@msg", "You have received a friend request from " + returnName(uid)You have used "uid" as request sender but again updating the same user.. please check that too..Regards,Nivash Ramachandran.
siddharth_kcrwant to update [msg] and [friendid] field in friends table where friendid is in members table
siddharth_kcr"@msg", "You have received a friend request from " + returnName(uid)
sql
rnivash
Member
312 Points
62 Posts
Re: How to use nested queries
Jan 17, 2012 11:47 AM|LINK
sql