【问题标题】:Order by size postgres bytea按大小排序 postgres bytea
【发布时间】:2013-07-15 14:19:17
【问题描述】:

我将图像存储在 bytea 字段中的 postgresql 9.1 数据库表中。 我想做一个查询以按大小对它们进行排序并显示它们的大小。 我需要这个,因为有一些大图像会导致延迟问题。

【问题讨论】:

    标签: postgresql bytea


    【解决方案1】:
    select length(the_image_column) as the_size
    from t
    order by 1 desc
    

    【讨论】:

      猜你喜欢
      • 2014-09-02
      • 2011-06-13
      • 1970-01-01
      • 1970-01-01
      • 2013-01-12
      • 2012-08-05
      • 1970-01-01
      • 2023-01-08
      • 2020-06-25
      相关资源
      最近更新 更多