database - Sqlite giving column more size than needed -


i have data putting in database. make field "coupondetail text(10000)" store coupon detail, consider not coupondetail 10,000 chars long. m curious know how space column take in database when coupondetail text lesser 10,000 1000 chars?

sqlite not care how declare column types , ignores maximum length specified. the declared type hint; non-integer primary key column can contain type.

the size taken in database file depends on values put in. in record format, strings stored length followed string data. no empty space left there.


Comments

Popular posts from this blog

.htaccess - htaccess convert request to clean url and add slash at the end of the url -

php - facebook and github login HWIOAuthBundle and FOSUserBundle in Symfony2.1 -

hadoop - Sqoop installation export and import from postgresql -