阅读背景:

Oracle SQL——如何编写一个有条件且循环的insert语句?

来源:互联网 

Context: I have two tables: markettypewagerlimitgroups (mtwlg) and stakedistributionindicators (sdi). When a mtwlg is created, 2 rows are created in the sdi table which are linked to the mtwlg - each row with the same values bar 2, the id and another field (let's call it column X) which must contain a 0 for one row and 1 for the other. There was a bug present in our codebase which prevented this happening automatically, so any mtwlg's created during the time that bug was present do not have the related sdi's, causing NPE's in various places. Context: I have two tables: markettypewagerlimi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: