A simple INSERT INTO SELECT statement:
INSERT INTO persons_table SELECT * FROM customer_table WHERE person_name="tom";
DELETE FROM customer_table WHERE person_name="tom";
More Related Contents:
- What is better subquery vs literal on IN clause in mysql
- When to use single quotes, double quotes, and backticks in MySQL
- Trouble with UTF-8 characters; what I see is not what I stored
- ERROR 1698 (28000): Access denied for user ‘root’@’localhost’
- MySQL: Grant **all** privileges on database
- How to escape apostrophe (‘) in MySql?
- Is it possible to have function-based index in MySQL?
- Multiple Updates in MySQL
- SQL split comma separated row [duplicate]
- MySql Error: Can’t update table in stored function/trigger because it is already used by statement which invoked this stored function/trigger
- Does MySQL ignore null values on unique constraints?
- What does the KEY keyword mean?
- MySQL – Subtracting value from previous row, group by
- MySQL utf8mb4, Errors when saving Emojis
- How to count items in comma separated list MySQL
- How to store unicode in MySQL?
- mysql after insert trigger which updates another table’s column
- Search for string within text column in MySQL
- Error renaming a column in MySQL
- Mysql database sync between two databases
- Is there a simple way to convert MySQL data into Title Case?
- Clear MySQL query cache without restarting server
- Mysql select recursive get all child with multiple level
- MySQL Error: Incorrect usage of UPDATE and LIMIT
- Mysql insert into 2 tables
- How do you stop MySQL on a Mac OS install?
- Replace null with 0 in MySQL
- Array data type, split string,
- Trouble with GROUP_CONCAT and Longtext in MySQL
- mySQL SELECT upcoming birthdays