copy one column from one table to another

后端 未结 2 1463
傲寒
傲寒 2021-02-01 04:30

I am confused about how to copy a column from one table to another table using where. I wrote SQL query but it says transaction lock time exceeded or query returns more than one

2条回答
  •  灰色年华
    2021-02-01 04:53

    I do not believe you need a sub query.

    UPDATE results, build
    SET    results.platform_to_insert = build.correct_platform
    WHERE  results.BuildID = build.BuildID
    

提交回复
热议问题