mysql - should I use text or longtext for table column? -


whats difference? text() enough?

i found abuot this: $table->longtext('description');

and made me wonder if text alone enough content can of lenght, lets blog post, 1 use?

each type manage different max length

varchar(m), varbinary(m) 255 bytes, or more 255 bytes

tinyblob, tinytext l l < 2^8

blob, text l < 2^16

mediumblob, mediumtext l < 2^24

longblob, longtext l < 2^32

https://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -