Syntax error, remove the ( )
from select
.
insert into table2 (name, subject, student_id, result)
select name, subject, student_id, result
from table1;
More Related Contents:
- MySQL INSERT INTO … VALUES and SELECT
- Recreating a query using INNER JOIN? [duplicate]
- What is better subquery vs literal on IN clause in mysql
- quick selection of a random row from a large table in mysql
- How to do a batch insert in MySQL
- Operand Should Contain 1 Column – MySQL NOT IN
- Ordering by specific field value first
- MySQL – Operand should contain 1 column(s)
- SQL – IF EXISTS UPDATE ELSE INSERT INTO
- SELECT / GROUP BY – segments of time (10 seconds, 30 seconds, etc)
- How to copy a row and insert in same table with a autoincrement field in MySQL?
- Checking multiple columns for one value
- MySQL Error 1264: out of range value for column
- How do I get the ID of multiple inserted rows in MySQL?
- How to insert data to MySQL with auto-incremented column(field)?
- MySQL #1093 – You can’t specify target table ‘giveaways’ for update in FROM clause
- quick selection of a random row from a large table in mysql
- Compare only day and month with date field in mysql
- Syntax error when using except in a query
- SELECT query return 1 row from each group
- What are practical differences between `REPLACE` and `INSERT … ON DUPLICATE KEY UPDATE` in MySQL?
- MySQL INNER JOIN select only one row from second table
- MySQL Select Query – Get only first 10 characters of a value
- SQL query to check if a name begins and ends with a vowel
- MySQL – insert data from another table merged with constants
- How to SELECT by MAX(date)?
- MySQL optimizing INSERT speed being slowed down because of indices
- MySQL: Insert datetime into other datetime field
- “Unknown column in ‘field list'”, but column does exist
- Insert and set value with max()+1 problems