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, username, password, active) SELECT first_name, last_name, address_id, CONCAT(first_name, '.', last_name, '@sakilastaff.com') AS email, 2 AS store_id, LOWER(first_name) AS username, '8cb2237d0679ca88db6464eac60da96345513964' AS password, 1 AS active FROM customer WHERE first_name = 'COLLEEN' AND last_name = 'BURTON' LIMIT 1; ; select staff_id, first_name, last_name, address_id, email, store_id, active, username, password from staff order by staff_id;

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

Copy Clear