mysql - Is it best idea to have a table with all column type as "Text" -


i new web application developing.i using php+mysql. wanted check best , safe way create db schema. having table 15 column 1st column unique id , remaining type of "text" , planning put approx 1-20kb data in each column.

so or bad or should not that. please me on same.

i using engine type myisam.

the best idea depends on you're using for. varchar faster when size reasonable , dependent on hardware , data using. should aways try store text format messages text whereas string attributes varchar.

text columns not stored in memory , have read disk, slower. check reference

also check blob storage in innodb


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -