我有這個JSON數組,這將在MySQL表中插入給出圖像與多個記錄插入JSON數組到MySQL數據庫:如何像DB圖像
[{"F_relation":"Son","F_name":"fhj","F_address_type":"Other","F_address":"55556","F_phone":"556"}, {"F_relation":"Husband","F_name":"fhj","F_address_type":"Other","F_address":"5566","F_phone":"889"}, {"F_relation":"Husband","F_name":"fhj","F_address_type":"Same","F_address":"ak, USA, 5566","F_phone":"89888789"}]
你嘗試過這麼遠嗎? –
那麼你面臨的問題是什麼? – Javed
首先將json轉換爲數組,然後在數據庫中插入數組值 –