database - Error renaming a column in MySQL -
how rename column in table xyz? columns are:
manufacurerid, name, status, ai, pk, int i want rename manufacturerid
i tried using phpmyadmin panel, error:
mysql said: documentation #1025 - error on rename of '.\shopping\#sql-c98_26' '.\shopping\tblmanufacturer' (errno: 150)
lone ranger close... in fact, need specify datatype of renamed column. example:
alter table `xyz` change `manufacurerid` `manufacturerid` int; remember :
- replace int whatever column data type (required)
- tilde/ backtick (`) optional
Comments
Post a Comment