I want to calculate the exact size occupied by the selected rows in a table. Table has different column data types like int, varchar, date...
example:
SNO(INT) , NAME(VARCHAR) , DATE(DATE)
1 , ABC , 20-01-2017
2 , BCD , 11-01-2017
My aim is to calculate the size occupied totally by the two rows of data with respective to their actual data type storage.
like sum(size(SNO)+size(NAME)+size(DATE))
Can anyone help me to solve this. Thanks