DAC for MySQL
Example: IndexFields, IndexFieldCount | Previous Next |
The following code calculates the total length of the index and assigns it to the variable
TotalLen.
TotalLen := 0;
with MySQLTable1 do
for I := 0 to IndexFieldCount - 1 do
Inc(TotalLen, IndexFields[I].DataSize);