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

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

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