I have two tables and want to insert some column values from ane table and some from through php code.
This is my query
INSERT INTO login2 (id, uname, pass, pid) SELECT id, uname, pass from `login`, '2'
But it gives an error of mysql. Plz help me.
It is incorrect.
Correct query is :