Hi.. thanks.. thats really useful.. I have some questions:
Does it only work with text files? I have some varchar fields too.. and,
can I put more than 1 field name into SUM() or LENGTH()?
I can't find a description of those functions on the mysql manual on
mysql.com..
Thanks!
Ariel.
At 10:26 11/08/2000 -0700, Dana Powers wrote:
If they are text fields, you might try
SELECT SUM(LENGTH(email_text)) FROM email_table WHERE user_id=?;
This wont be totally exact, but it should be pretty close.
On Thu, 10 Aug 2000, Ariel Manzur wrote:
Hi.. I wrote this "free webmail" system in perl, using Mysql, I have all
e-mails stored on a table ("emails"), each e-mail with the ID of the owner
of the e-mail.
Is there any way to get how much space is a user using on the table?
(without having to take all the data out and count each byte.. :)
Thanks.. bye.
Ariel.