我收到錯誤,json_each函數不存在。我正在使用postgresql 9.3。我不知道什麼是錯的。請在這裏幫助我。函數json_each不存在
select *
from json_each((
select ed.result
from externaldata ed
inner join
application a
on a.id = ed.application_id
))
limit 1;
內部循環查詢返回:
" { "RespuestaSVC89":{
"Header":{
"Transaccion":"EXPE",
"Servicio":"92",
"CodigoRetorno":"00",
"NumeroOperacion":"201409147001616",
"CodigoModelo":"13852901"
},
"meta":{
"billa":"EXPE",
"numo":"52",
"Retorno":"01",
"Operacion":"2014091470",
}
}
}"
所以它應該工作,但不知何故不工作
確切的錯誤信息是:
ERROR: function json_each(text) does not exist
LINE 2: from json_each((
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
********** Error **********
ERROR: function json_each(text) does not exist
SQL state: 42883
Hint: No function matches the given name and argument types. You might need to add explicit type casts.
Character: 15
請發佈**完全**錯誤信息(使用複製粘貼) – 2014-12-05 19:36:06
什麼數據類型是ed.result?它是文本還是json?嘗試將其轉換爲json – 2014-12-05 21:00:24
@a_horse_with_no_name我發佈了它。 – Billa 2014-12-07 02:16:34