I would like to change a table's schema so that one Integer field changes to Varchar one, but keep the data (previous numbers will now be strings).
try this to alter the schema:
alter table table_name change col_name col_name varchar(10)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With