Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
asgs112785yNo. The number within parentheses indicates the display count. The storage is only going to accept what an integer can take
I hope MySQL will stop supporting such useless extensions to data types -
C0D4669015yWhen the prince doesn't understand mysql types 😔
Also int(255) won't display at 255 either, and shouldn't that be a date/time or timestamp field? -
C0D4669015y@princebansal ok sure, I didn't read that far down.
But even with that, shouldn't you be defaulting that to 0? -
C0D4669015y@princebansal 🤔I just get an implied default should be used based on it being a number of days.
Otherwise you end up with ifnull() or casting happening based on its usage.
But as you said, unknown requirements.
Related Rants
Just another code review today
joke/meme
code review
github
sql