Jump to content

changing field type


jeff5656

Recommended Posts

* When you change a data type using CHANGE or MODIFY, MySQL tries to convert existing column values to the new type as well as possible.

 

Warning:

 

This conversion may result in alteration of data. For example, if you shorten a string column, values may be truncated. To prevent the operation from succeeding if conversions to the new data type would result in loss of data, enable strict SQL mode before using ALTER TABLE (see Section 5.1.7, “SQL Modes”).

 

Link to comment
https://forums.phpfreaks.com/topic/133131-changing-field-type/#findComment-692385
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.