我的JSON数据就像
{
"data":[{
"JoiningDate": "2016-02-05",
"Empname": "ABCDE","EmpID": "123"
}]
}
我该如何获取Empname的值,有人可以帮助我吗?
表结构:
CREATE TABLE emp AS
SELECT *
FROM (
VALUES ('{"data":[ { "JoiningDate": "2016-02-05",
"Empname": "ABCDE","EmpID": "123"}]}'
::json)
) emp(data);