sql database in real-time incremental update

 

--- sql what can be added to the job execution data once per second performance will consume too much   

 

- the data table below, wherein pid mid time price_type field is a primary key combination
--pid MID. Price price_type Time UID
INSERT INTO incremental update 2 (PID, MID, Times,. Price, price_type, UID)
SELECT PID, MID, Times, . price, price_type, UID
from T2 incremental update. 1
WHERE EXISTS Not (SELECT from the incremental update. 1 WHERE PID = t2.pid 2
and MID = t2.mid and Times = t2.times and price_type = t2.price_type)

 

 

 

 

Do not just look at someone else paid, let me see who go on leisure

Guess you like

Origin www.cnblogs.com/BoKeYuan259/p/10944817.html