当前位置:网站首页>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?
边栏推荐
猜你喜欢
随机推荐
TRACE32——SMP多核调试
每一个女孩曾经都是一个没有泪的天使
Discourse 清理存储空间的方法
Does Libpq support read-write separation configuration?
标准C语言15
向美国人学习“如何快乐”
P1103 书本整理
不能比较或排序 text、ntext 和 image 数据类型
存储过程编写经验和优化措施
Vulnhub target drone: HA_ NARAK
执子之手,与子偕老。你同意么?
TRACE32——List源代码查看
【Dynamic type detection Objective-C】
在ASP控制数字及字母输入
MAYA大炮建模
php向mysql写入数据失败
D2--FPGA SPI接口通信2022-08-03
SVG Star Wars Style Toggle Toggle Button
外企Office常用英语
In the anaconda Promat interface, import torch is passed, and the error is reported in the jupyter notebook (only provide ideas and understanding!)