当前位置:网站首页>The database has a table in which JSON data is stored in one field. I need to parse this string when this table is updated, and then update the parsed JSON data to another table. What are the good sug
The database has a table in which JSON data is stored in one field. I need to parse this string when this table is updated, and then update the parsed JSON data to another table. What are the good sug
2022-04-21 09:05:00 【CSDN Q & A】
surface A When data is updated , Find the updated data , Analyze the json strand , Deposit table B.
I came up with two plans :
1. Write a trigger , stay A When the data changes ,call Stored procedures , In stored procedure ,http Send to the interface for processing . But I don't know how to send... In a stored procedure http Access interface .
2. Parse in the database , use JSON_EXTRACT. When using this function , ordinary json That's all right. , complex json Will report a mistake .
I want to ask , Whether my plan is feasible , How to send data to the interface in the stored procedure ? Or is there another good solution ?( The database uses mysql)
Take the answer :
It's best not to do it in the database , Can be based on message oriented middleware , Send the change and save it kafka, Then there is a separate program to process the logic after consumption , That is, send data to the interface
版权声明
本文为[CSDN Q & A]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204141800227852.html
边栏推荐
- A value is trying to be set on a copy of a slice from a DataFrame.
- Flink的api入门案例
- Flink's API introduction case
- Error in idea connection to sqlserver
- 我的博客导航目录(持续整理更新中。。。)
- 一次学校实训总结
- 【Appium】使用模拟器实现有道云App的业务功能-新增、搜索、修改、删除
- 【MySQL】基于Linux-CentOS7.9的详细安装教程
- Ue5 little knowledge point animation blueprint interface cannot copy new in editor
- 极客大挑战 2019 Upload 1
猜你喜欢
随机推荐
2022年主要的编程语言及应用
Postman test excel file import and export function
Simulated 100 questions and simulated examination of Shanghai safety officer C certificate examination in 2022
电脑常用快捷键+常用Dos命令
A value is trying to be set on a copy of a slice from a DataFrame.
A value is trying to be set on a copy of a slice from a DataFrame.
极客大挑战 2019 Upload 1
CC00000.CloudJenkins—————————————
PC微信機器人個人號接口api之實戰分析微信同意好友call
某系统拥有N个进程,总共7个资源,每个进程需要3个资源,问N数量最多为多少不会死锁?(附解析)
BUUCTF[极客大挑战 2019]EasySQL
idea连接SqlServer报错
Add log4j log function
C#100分秘籍 sduwh
曾经有望挑战苹果的魅族,如今靠为苹果用户提供配件而生存
Actual combat analysis of PC wechat robot personal number interface API wechat agrees with friend call
JS -- closure
Uniapp hot update and full package update
Notice on organizing the application of the first set of technical equipment and key core parts project in Shandong Province in 2022
[CTF. Show. Reverse] moon cake cup RE1_ Northwest Wangxiang, re2_ Homing, RE3_ If there is no month



![Buuctf [actf2020 freshman competition] include](/img/20/3c0d0286c869385ee0c9a119e337e2.png)
![Grid division [DFS]](/img/39/1929a57b7305a49292ef3972afa8a3.png)
![BUUCTF[极客大挑战 2019]Havefun](/img/5a/9b1942c0d24f079be804c7b3304be1.png)


