简体   繁体   中英

Sqlite query to check size of column as byte

I have tried search alot for how to get the memory size of table used in disk. I guess that it's not possible with SQLite.

I think. I could get the table size if I get the row size. is there is query for Sqlite to check memory size of column as byte.

for example I have table with these following fields.

Id (int) Name (text) Img (blob).

How can I check total memory size of id, name, img used in a table.

Thank you.

SQLite itself does not give you this information, but the sqlite-analyzer tool does.

If you want to do this from your app, you have to read all the record values and from those deduce how many bytes are used in the on-disk record format .

you can get size of table from this .

How to find current size (in memory) of table?

this may be for column

http://social.msdn.microsoft.com/forums/en-US/transactsql/thread/08d53163-5d40-49d0-a6ed-b1b1eccca235/

try this may be some of help you can find .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM