We had an outside source convert our MSAccess database into a MySQL database with a webbased front end powered by Java. The system is working well, but I was just doing some work in it and see that he has defined the field holding our employee numbers as an unsigned tinyint. This will limit us to a maximum of 255 employee numbers assigned before it is full. Is there any problem with my just changing that field to a smallint or some other type to hold a larger number? Right now all employee numbers are between 1 and 215 so I would imagine there should be no issue with making the conversion. It has always been my understanding that changing to a larger capacity type is fine, but you would run into problems if I were to say have it currently set as smallint and wanted to change to tinyint, in that case I would run into the problem where any current records with a value out of the range limit of the tinyint would then be bad records (or some other corruption would occurr).
Could someone confirm or deny my thinking? Can I just change the datatype to smallint from tinyint without other issues?
Thanks.
Greg Hicks
Greg Hicks
VB.Net (Newbie) Programmer
Could someone confirm or deny my thinking? Can I just change the datatype to smallint from tinyint without other issues?
Thanks.
Greg Hicks
Greg Hicks
VB.Net (Newbie) Programmer