I’m creating website in 3 languages and using one table of db for page translation. I wonder which field type is the best for this reason: varchar, tinytext, text …? And please explain, why you think so.
I’m creating website in 3 languages and using one table of db for page
Share
TEXTis the most appropriate field:While
VARCHARis limited to25565535 characters,TINYTEXTmight be too small depending on the lengths of your texts – but if you only use short phrases it would work, too.However, you should consider using gettext instead of a database.