How to insert json array into mysql database

前端 未结 6 987
春和景丽
春和景丽 2020-12-05 11:46

Hi I\'m trying to insert the json array into my MySQL database. I\'m passing the data form my iphone there i have converted the data into json format and I\'m passing the da

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 12:27

    Its simple you can insert json datatype as below. reference link: click here for more details

    insert into sgv values('c-106', 'admin','owner',false,'[{"test":"test"}, 
    {"test":"test"}]',0,'pasds');
    

提交回复
热议问题