INSERT ... SELECT
http://dev.mysql.com/doc/refman/5.1/en/insert-select.html
INSERT INTO newsletter_to_send
SELECT id_subscriber FROM subscribers
PS: are you sure you don’t need in WHERE
clause?
More Related Contents:
- Are table names in MySQL case sensitive?
- Can’t connect to MySQL server on ‘localhost’ (10061)
- MySQL database with unique fields ignored ending spaces
- MySQL 1062 – Duplicate entry ‘0’ for key ‘PRIMARY’
- MySQL DROP all tables, ignoring foreign keys
- How to start MySQL server from command line on Mac OS Lion?
- MySQL: Check if the user exists and drop it
- Autostart MySQL Server on Mac OS X Yosemite/El Capitan
- Get the second highest value in a MySQL table
- Call a stored procedure for each row returned by a query in MySQL
- MySQL ‘select for update’ behaviour
- How to select non “unique” rows
- Why is connecting to MySQL server so slow?
- MySQL disable all triggers
- Retrieving only a fixed number of rows in MySQL
- How do I fix the ‘Out of range value adjusted for column’ error?
- MySQL Closure Table hierarchical database – How to pull information out in the correct order
- Fetching a Single Row from Join Table
- why this mysql event can’t get run?
- Is it unreasonable to assign a MySQL database to each user on my site?
- Mysql Counting the consecutive rows that match
- Specific Date Format in mysql
- MYSQL Truncated incorrect DOUBLE value
- Last index of a given substring in MySQL
- Create a new database with MySQL Workbench
- Connect to mysql server without sudo
- Generate serial number in mysql query
- What are the benefits of only_full_group_by mode?
- How to search and replace all instances of a string within a database?
- mySQL SELECT upcoming birthdays