UPDATE old.bruckm_ticketcustomer SET email=concat(firstname,".",surname,"@fakemail.at") WHERE email = ""; INSERT IGNORE INTO bm.users ( title, firstname, lastname, street, location, phone, admin, email, password, resetPw) SELECT acad as title, firstname, surname as lastname, address as street, concat(zip, city) as location, phone, 0, email, "not yet setlusahgluhgugwhlahlglksghehgiuhghl", 1 FROM old.bruckm_ticketcustomer;