Im trying to rename a column in one of my tables but MySQL returns me this error:
ERROR 1064 (42000): 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 'COLUMN IPorigen TO IPorig' at line 1
This is the statement I tried using to rename the column:
ALTER TABLE InformeGeneral RENAME COLUMN IPorigen TO IPorig;
I have also tried this too:
sp_RENAME 'InformeGeneral.IPorigen' , 'IPorig' , 'COLUMN';
I don't know what I'm doing wrong?
My MySQL version is: mysql Ver 14.14 Distrib 5.5.41, for debian-linux-gnu (i686) using readline 6.2