SQL to update table value from key from another table
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Oct 2008
    Posts
    13

    Default SQL to update table value from key from another table

    hi people,

    Does anyone know how I can update HEMPLAYERNOTES.icon_id from a set of player_id's that I hold in a view.

    I have:

    Code:
    UPDATE hemplayernotes 
       SET icon_id=2 
    WHERE player_id in (SELECT f.player_id 
                        FROM myView f) returning player_id;
    at present but despite myView containgin 29 player_ids only a single row of HEMPLAYERNOTES is affected.

    Any help greatly profitable, i mean appreciated ;p

  2. #2
    Junior Member
    Join Date
    Oct 2008
    Posts
    13

    Default

    Code:
    INSERT INTO hemplayernotes (player_id) select player_id from filterGiveUp;
    my bad, problem solved.

Similar Threads

  1. New FTP Update and Table Scanner
    By Qwak in forum Releases
    Replies: 19
    Last Post: 07-21-2010, 07:29 AM
  2. Replies: 1
    Last Post: 06-19-2010, 08:08 PM
  3. How do you remove the Table Ninja Ad from HEM update?
    By StrikingEagle in forum Manager General
    Replies: 1
    Last Post: 03-30-2010, 12:29 PM
  4. Replies: 9
    Last Post: 07-30-2009, 02:08 PM
  5. HUD + Table Manager Keep Crashing After Update 1.07
    By Ben3737 in forum Manager General
    Replies: 2
    Last Post: 12-11-2008, 06:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •