当前位置:网站首页>SQL SERVER on master-slave table trigger design
SQL SERVER on master-slave table trigger design
2022-08-05 07:54:00 【CSDN Q&A】
There are two two tables, A and B relationship is a master-slave table.
A table has two fields, date and number.
Table B has four fields of date and specification and number and quantity.
The number field of the two tables is an association relationship.
Currently A's data is triggered from other tables.Then add table B according to the data of table A.(It means that there is a load of goods in table A, and I want to slowly classify table B), and then the next step I need is to summarize the data in table B into table C by date and specification, and there must be two summaries,One label is injected into the library, and the other is labeled out of the library.
I have tried to write triggers in table B, but if table B adds a record, table C will add one, so it is unrealistic and can only be written in table A.
At present, I don't know if the data of table B is summarized in table A and inserted into table C, someone can give me some ideas on how to write it?
边栏推荐
猜你喜欢
随机推荐
国家强制性灯具安全标准GB7000.1-2015
Jmeter永久设置中文界面
JS实现从照片中裁切自已的肖像
线程池的创建及参数设置详解
【结构体内功修炼】结构体实现位段(二)
Use of thread pool (combined with Future/Callable)
唤醒手腕 - 微信小程序、QQ小程序、抖音小程序学习笔记(更新中)
每月稳定干2万
行业应用软件项目经理三步曲
Modeling of the MAYA ship
moment的使用
SVG Star Wars Style Toggle Toggle Button
程序设计中的感悟
谷歌零碎笔记之MVCC(草稿)
unity 头发的渲染
browserslist 选项的目的是什么?
The magic weapon for small entrepreneurs!
配合屏幕录像专家,又小又清晰!
cmake 学习使用笔记(三)
Vulnhub靶机:HA_ NARAK









