I would like to know if the mysql command exists to determine the actual storage size used in the mysql field.
Maybe something like "show used_storage myfield FROM ... WHERE ..."
Oddly enough, I did not find anything like it.
(The same for postgresql will be interesting)
Thank you so much!
For PostgreSQL you can use
SELECT your_column, pg_column_size (your_column) FROM your_table
http://www.postgresql.org/docs/current/static/functions-admin.html
,
SELECT SUM(LENGTH(myField)) From MyTable
- , , 4 INTEGER, 8 DOUBLE.
, . , , . , , - .
( ) :
SHOW TABLE STATUS LIKE 'MyTable';
, , , .
Using the MySQL document space:
http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html
Source: https://habr.com/ru/post/1781482/More articles:cutting from a string in C # - stringHow do you avoid a reserved word in Free-Pascal? - delphiHow to assign NULL to optional parameters in VB.NET 1.1 - vb.netC # Byte [] Encryption - c #Is jQuery e.target suitable for best practice? - jqueryhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1781483/how-to-add-characters-to-reach-the-maximum-size-of-a-char&usg=ALkJrhjO3_dXSBO25afUUWSt2bCWkHw-dAlooking for a clean PHP code editor - editorA common way to get a reference to the calling method? - actionscript-3С# Process Exited Event Help - c#Javascript reg ex требуется целое число от 1 до 999999? - javascriptAll Articles