简体   繁体   中英

MYSQL altering table field type

I want to change my SQL table field type to FULLTEXT. Because MATCH function not working. Is there any possibilities of data loss to altering the table field??

There is always risk of data loss. So before you update the table type, make a backup. So whatever happens, you are safe (at least more safer than losing data).

Make a dump of the table data only. Then change the field type, in case of data lose you can restore easily.

mysqldump --no-create-info --complete-insert <db> <table>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM