I’m writing a multiple choice test taking app and wondering what he most appropriate data type would be for storing a question’s question text (and also the answers). A question’s text is probably going to usually be less than say 255 characters, but occasionally it might go over that. Taking both performance and memory usage into account, is a TEXT field the best choice, or a TINYTEXT or something else?
I’m writing a multiple choice test taking app and wondering what he most appropriate
Share
If it may go over 255 then you should use varchar(10000) or something like that. Any varchar larger than varchar(255) is stored in exactly the same way. The Text data type has some performance considerations that you don’t need to worry about if you simply don’t use it.