문제

I have images stored in a postgresql 9.1 database table in bytea fields. I want to do a query to order them by size and show their size. I need this because there are some big images that are causing delay issues.

도움이 되었습니까?

해결책

select length(the_image_column) as the_size
from t
order by 1 desc
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top