我在尝试更改这些表上的列名时遇到了mysql错误:
alter field_data_commerce_customer_address CHANGE field_mcaf_middle_name commerce_customer_address_middle_name varchar (255); alter field_revision_commerce_customer_address CHANGE field_mcaf_middle_name commerce_customer_address_middle_name varchar (255);
这是我的错误
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'field_data_commerce_customer_address CHANGE field_mcaf_middle_name commerce_cust' at line 1
我检查了表名和列名,但它们是正确的。我缺少什么
答案 0 :(得分:2)
你错过了'TABLE'字样:
alter TABLE field_data_commerce_customer_address CHANGE field_mcaf_middle_name commerce_customer_address_middle_name varchar (255);
alter TABLE field_revision_commerce_customer_address CHANGE field_mcaf_middle_name commerce_customer_address_middle_name varchar (255);