在"id_ref_directory“键下获取所有值时,我遇到了问题。CREATE LOCAL TEMP TABLE parsed_json( var_value text NOT NULL)我在临时表中有一个JSON:SELECT * WHERE value IS NOT NULL and LENGTH(value)
我正在尝试将一个新的整数值添加到postgres表中现有的整数数组中。我在这里使用array_append方法,但得到"Cannot cast type jsonb to integer[]“错误。注意--我只是为了学习的目的而使用它,所以我故意将using _Note保存为整数。 ? update querytesting set jsondoc=jsondoc||jsonb_build_object(jsondoc