1
如何从http://sourceforge.net/projects/pljson/使用pl/sql json从下面的json中检索内容?Pl/SQL json列表循环
{“错误”:“无效的重量”,“无效的托盘点”]}
我想文字是这样1.重量无效,无效2点托盘。
感谢
如何从http://sourceforge.net/projects/pljson/使用pl/sql json从下面的json中检索内容?Pl/SQL json列表循环
{“错误”:“无效的重量”,“无效的托盘点”]}
我想文字是这样1.重量无效,无效2点托盘。
感谢
这其实很简单:
DECLARE
obj json := json();
arr json_list := json_list();
BEGIN
obj := json('{"errors":["Invalid weight","Invalid pallet spots"]}');
arr := json_list(obj.get('errors'));
dbms_output.put_line(arr.get(1).get_string());
dbms_output.put_line(arr.get(2).get_string());
END;
/
你可能也想看看我自己的(性能优化的)一个JSON库PL/SQL的版本@https://github.com/doberkofler/PLSQL-JSON
你好@materialdreams,你的工作对我有用2我,非常感谢! – Mariah