Copy data from one existing row to another existing row in SQL?

后端 未结 6 1299
猫巷女王i
猫巷女王i 2020-12-29 18:12

I have a table full of tracking data for as specific course, course number 6.

Now I have added new tracking data for course number 11.

Each row of data is fo

6条回答
  •  轮回少年
    2020-12-29 18:37

    Use SELECT to Insert records

    INSERT tracking (userID, courseID, course, bookmark, course_date, posttest, post_attempts, post_score, post_date, complete, complete_date, exempted, exempted_date, exempted_reason, emailSent) 
    SELECT userID, 11, course, bookmark, course_date, posttest, post_attempts, post_score, post_date, complete, complete_date, exempted, exempted_date, exempted_reason, emailSent
    FROM tracking WHERE courseID = 6 AND course_date > '08-01-2008'
    

提交回复
热议问题