Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
Copy Format Clear
create table address like sakila.address; insert into address select * from sakila.address; create table customer like sakila.customer; insert into customer select * from sakila.customer; create table staff like sakila.staff; insert into staff select * from sakila.staff; INSERT INTO staff (first_name, last_name, address_id, email, store_id, password) SELECT c.first_name, c.last_name, c.address_id, CONCAT(LOWER(c.first_name), '.', LOWER(c.last_name), '@sakilastaff.com') AS email, 2 AS store_id, -- Филиал номер 2 '8cb2237d0679ca88db6464eac60da96345513964' AS password FROM customer c WHERE c.first_name = 'COLLEEN' AND c.last_name = 'BURTON';

Stuck with a problem? Got Error? Ask AI support!

Copy Clear