Home > database > How to found out the pl/SQL database table columns to add data? To solve! Be urgent!
How to found out the pl/SQL database table columns to add data? To solve! Be urgent!
Time:09-28
SELECT (SELECT t.t QMC FROM dw_tq t WHERE t.t QBS=b.t QBS) the first place, (SELECT y.m c FROM dw_yxbyq y WHERE y.t QBS=b.t QBS) of the The FROM fw_kfgdxx a, fw_tsywfjxx b WHERE a.k FGZDBS=b.k FGZDBS AND a.k FGZDBH='123456789000000'
CodePudding user response:
The SELECT c.t QMC, d.m c The FROM fw_kfgdxx a, fw_tsywfjxx b, dw_tq c, dw_yxbyq d WHERE a.k FGZDBS=b.k FGZDBS AND a.k FGZDBH='123456789000000' And c.t QBS=b.t QBS And which QBS=b.t QBS
CodePudding user response:
So you can probably as follows.. Directly with the update statement to update.. The update dw_tq The set TQMC='you want to add content in the first place' Where the exists (select 1 The from (select * The from the from fw_kfgdxx a, fw_tsywfjxx b WHERE a.k FGZDBS=b.k FGZDBS C AND a.k FGZDBH='123456789000000') WHERE c.t QBS=t.t QBS); The update dw_yxbyq Set the MC='what you want to add in the second place' Where the exists (select 1 The from (select * The from the from fw_kfgdxx a, fw_tsywfjxx b WHERE a.k FGZDBS=b.k FGZDBS C AND a.k FGZDBH='123456789000000') WHERE c.t QBS=t.t QBS);