If rank = this put team here?

后端 未结 1 1600
Happy的楠姐
Happy的楠姐 2021-01-17 00:05

How can I do this?

add a number 1 to the field gameswon if this occurs:

Pseudocode:

table names = \'games\', \'teams\'
fields         


        
1条回答
  •  粉色の甜心
    2021-01-17 00:48

    first question query:

    INSERT
    INTO   teams
           (
              gameswon
           )
    SELECT 1 AS gameswon
    FROM   games
    WHERE  score1 <> score2
    

    second question I do not understood
    please provide full table structure

    0 讨论(0)
提交回复
热议问题