【发布时间】:2010-06-27 09:14:12
【问题描述】:
我有一个名为_sample_table_delme_data_files 的表,其中包含一些重复项。我想将其记录复制到data_files:
INSERT INTO data_files (SELECT distinct * FROM _sample_table_delme_data_files);
ERROR: could not identify an ordering operator for type box3d
HINT: Use an explicit ordering operator or modify the query.
问题是,PostgreSQL 无法比较(或排序)box3d 类型。如何提供这样的排序运算符,以便我只能将不同的值放入目标表中?
提前致谢,
亚当
【问题讨论】:
标签: postgresql postgis comparator