Dab tsi yog kev siv SAVE kev zam hauv Oracle?
Dab tsi yog kev siv SAVE kev zam hauv Oracle?

Video: Dab tsi yog kev siv SAVE kev zam hauv Oracle?

Video: Dab tsi yog kev siv SAVE kev zam hauv Oracle?
Video: Tsis Yog Hmoob Sib Ntxhais Ntxawm - SODA Poj Laib Khej Me (Cover) 2024, Hlis ntuj nqeg
Anonim

Description Ntxiv cov TXAUS SIAB TXOJ CAI clause rau koj daim ntawv FORALL thaum koj xav tau PL / SQL runtime cav kom ua tiav tag nrho DML nqe lus tsim los ntawm FORALL, txawm tias ib qho lossis ntau dua ua tsis tiav nrog qhov yuam kev. Yog koj siv QHOV TSEEB, koj yuav tsum tau saib xyuas qee yam kom nrhiav tau koj txoj hauv kev rov qab mus rau cov lus ua txhaum cai.

Ib yam li ntawd, dab tsi yog kev siv cov khoom ntim ntau hauv Oracle?

BULK sau txo cov ntsiab lus hloov pauv ntawm SQL thiab PL / SQL cav thiab tso cai rau SQL cav mus nqa cov ntaub ntawv ib zaug. Oracle PL/SQL muab lub functionality ntawm nqa cov ntaub ntawv nyob rau hauv loj es tsis txhob nqa ib leeg.

Tsis tas li ntawd, dab tsi yog bulk collect thiab muaj kev txwv nyob rau hauv bulk collect? Siv lub BULK COLLECT clause hauv PL/SQL implies raws li nram no txwv : Cov ntawv sau yuav tsum tau siv los ua cov hom phiaj sib txawv uas tau teev tseg hauv a BULK sau INTO clause. 4. Cov hom phiaj sib xyaw (xws li cov khoom siv) tsis tuaj yeem siv rau hauv tus RETURNING INTO clause lwm qhov yuam kev yog qhia rau feature nrog RETURNING clause.

Ib sab ntawm no, dab tsi yog qhov kev zam ntawm Oracle?

Tej Cov haujlwm uas ua tiav txij li Oracle 9i ua FORALL nqe lus suav nrog kev xaiv SAVE TSEEM CEEB clause uas tso cai loj kev ua haujlwm kom txuag tau kev zam cov ntaub ntawv thiab txuas ntxiv ua haujlwm. Thaum qhov kev ua tiav tiav, lub kev zam cov ntaub ntawv tuaj yeem rov qab tau siv SQL%BULK_EXCEPTIONS tus cwj pwm.

Dab tsi yog qhov tshwm sim hauv Oracle?

A ua rau yog ib lub npe PL/SQL thaiv khaws cia rau hauv lub Oracle Database thiab executed cia li thaum muaj xwm txheej tshwm sim tshwm sim. Piv txwv li, yog tias koj txhais a ua rau uas hluav taws kub ua ntej INSERT nqe lus ntawm cov neeg siv khoom lub rooj, lub ua rau yuav tua ib zaug ua ntej ib kab tshiab tso rau hauv cov neeg siv khoom lub rooj.

Pom zoo: