If I use INT(12) vs INT(10) or INT(8) what will this actually do in terms of me using in code?
(This is a spin off of a previous question) I read through the manuals and I think I understand what they’re saying, but I don’t actually know how it would apply to my php/mysql coding.
Can someone provide an example of where this would actually matter?
Short answer: there’s no difference.
The display width is passed back in the “meta data”. It’s up to the application to make use of it. Normally it’s just ignored. I don’t think you can get it using the mysql functions, but you might be able to with mysqli using mysqli_fetch_field_direct.