In my application, I make some changes and upload them to the test server. Since I do not have access to the server database, I run ALTER commands to make changes to it.
Using the method, I ran the following command on the server:
ALTER TABLE `blahblahtable` ADD COLUMN `newcolumn` INT(12) NOT NULL
After that, I found that all the data in the table was deleted. Now the table is empty.
Therefore, I need to change the table without deleting its data. Is there any way to do this?
user605334
source share