INSERT INTO action_2_members (campaign_id, mobile, vote, vote_date)
SELECT campaign_id, from_number, received_msg, date_received
FROM `received_txts`
WHERE `campaign_id` = '8'
More Related Contents:
- MySQL Insert query doesn’t work with WHERE clause
- Delete from two tables in one query
- Why would an IN condition be slower than “=” in sql?
- Fulltext Search with InnoDB
- MySQL dump by query
- Delete sql rows where IDs do not have a match from another table
- How to search multiple columns in MySQL?
- In SQL / MySQL, what is the difference between “ON” and “WHERE” in a join statement?
- MySQL – Selecting data from multiple tables all with same structure but different data
- What does DELIMITER // do in a Trigger?
- Does Mysql have an equivalent to @@ROWCOUNT like in mssql?
- MySQL equivalent of DECODE function in Oracle
- How do you version your database schema? [closed]
- Can a stored procedure/function return a table?
- MySQL, Get users rank
- Mysql: how to select groups having certain values?
- How to fill date gaps in MySQL?
- Adding a new SQL column with a default value
- Boolean vs tinyint(1) for boolean values in MySQL
- Selecting all corresponding fields using MAX and GROUP BY
- MySQL full text search for words with three or less letters
- MySQL: “The SELECT would examine more than MAX_JOIN_SIZE rows”
- Function for week of the month in mysql
- Find rows that have the same value on a column in MySQL
- what is the difference between GROUP BY and ORDER BY in sql
- How to transform vertical data into horizontal data with SQL?
- How to find all IDs of children recursively?
- How to implement a Keyword Search in MySQL?
- In SQL how do I get the maximum value for an integer?
- Get the first and last date of next month in MySQL