Yii2 скопировать значение одного столбца в другой

    0

    0

    yii2mysql

    This code creates a new command to update the document with the season_id value.

    \Yii::$app->db->createCommand()
      ->update('document', ['season_id' => new \yii\db\Expression('item_id')], ['module' => 'season'])
      ->execute();
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.