我有一个数据库表,在jsonb字段中有tweet。我有一个查询,用来获得转发次数最多的推文,如下所示: SELECT DISTINCT ON (raw->'retweeted_status'->'id_str')raw->'retweeted_status' as status,
raw->'retweeted_status'->'retw
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. SELECT COALESCE(Table_F