mysql 复制语句

INSERT INTO table (company_id,customer_name,customer_officephone,customer_phone,customer_situation,customer_note) SELECT company_id,customer_name,customer_officephone,customer_phone,customer_situation,customer_note FROM table WHERE employee_id=xx AND customer_note is not  NULL
记录一下,以后会用到,网上有部分例子是错误的,注意,添加的字段必须要与查出的字段相同才可以,否则语句是错误的。

你可能感兴趣的:(mysql 复制语句)