The syntax is this (if the tables are identical):
INSERT INTO Produk SELECT * FROM stock
pritaeas
Posting Prodigy
9,287 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,458
Skill Endorsements: 86
pritaeas
Posting Prodigy
9,287 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,458
Skill Endorsements: 86
I never use backticks, or quotes around field names, also make sure there are no spaces
It's good practice to do so as reserved words can often mess up your queries. Anyway - backticks around fieldnames, single quotes around values (if in a double quoted string and data is not numeric).
Tony's sql should work.
diafol
Keep Smiling
10,653 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,510
Skill Endorsements: 57
Question Answered as of 3 Months Ago by
TonyG_cyprus,
pritaeas,
Biiim
and 1 other