?
Solved

How to get blob field size?

Posted on 2007-07-25
3
Medium Priority
?
2,465 Views
Last Modified: 2013-12-12
Hi expert,

I have a table which have the following fields:

----------------------------------------
      id      |      logs      |      date      |
----------------------------------------
      1      |  blobfield  | 2007-07-26|
----------------------------------------

How can i retrieve the logs size?

Regards,
www-i-p-mu
0
Comment
Question by:www-i-p-mu
1 Comment
 
LVL 7

Accepted Solution

by:
ljubiccica earned 2000 total points
ID: 19572087
In mysql: OCTET_LENGTH(logs)

SELECT OCTET_LENGTH(data) FROM table t;

Regards,
Ljubbica

0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
This holiday season, we’re giving away the gift of knowledge—tech knowledge, that is. Keep reading to see what hacks, tips, and trends we have wrapped and waiting for you under the tree.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month13 days, 20 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question