Home >Backend Development >PHP Tutorial >What field type is best to use to represent status in the database?
Although I have been using tinyint to save in the past, I found that if the business logic changes frequently, the order of numbers will be disrupted, and it will become difficult to identify with the naked eye. If you execute SQL statements directly in the database, you have to check the corresponding constant configuration instructions
I found a lot Foreign open source programs use character storage states.