Help a simple problem

xiaoxiao2021-03-05  47

There are two data sheets belong to the main relationship, the main fields are as follows:

BnewGoods Table:

Inmat_no (PrimaryKey)

GROSS_WT DECIMAL

NET_WT DECIMAL

BnewGoodsDetail Table:

Inmat_no (feed single number)

Car_order (send a car form, primarykey)

Gross_wt

NET_WT

The problem now is: Gross_Wt in the table above, NET_WT is a summary of Gross_Wt, Net_WT in the schedule.

How to write a trigger, when the gross_wt in the list, the number of the number in the primary table is changed. Claim

The primary table can also increase, as if the number of summary of the summary table is not added to the number of times the short table.

转载请注明原文地址:https://www.9cbs.com/read-36554.html

New Post(0)