1

I want to merge two tables into one table.

The first table is images and the columns are; id, item, name, path, category, sub_category, designer

The second table is items and the columns are: item, description material, size, color, description

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
viscosho
  • 21
  • 2
  • 11
  • Duplicate of : http://stackoverflow.com/questions/725556/how-can-i-merge-two-mysql-tables – Ajit May 22 '12 at 16:53

1 Answers1

0

Check out the following: http://dev.mysql.com/doc/refman/5.0/en/insert-select.html

From the website:

INSERT INTO tbl_temp2 (fld_id)
  SELECT tbl_temp1.fld_order_id
  FROM tbl_temp1 WHERE tbl_temp1.fld_order_id > 100;
Mali
  • 131
  • 8