Copy selection from one table to another with changes

/ Published in: SQL
Save to your folder(s)

Copy this code and paste it in your HTML
  1. CREATE TEMP TABLE tempcourse AS SELECT * FROM bookings WHERE presentation=xxxxxx
  2. UPDATE tempcourse SET presentation=yyyyyy
  3. INSERT INTO bookings SELECT * FROM tempcourse
  4. DROP TABLE tempcourse;

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.