<small id='arH77'></small><noframes id='arH77'>

    <i id='arH77'><tr id='arH77'><dt id='arH77'><q id='arH77'><span id='arH77'><b id='arH77'><form id='arH77'><ins id='arH77'></ins><ul id='arH77'></ul><sub id='arH77'></sub></form><legend id='arH77'></legend><bdo id='arH77'><pre id='arH77'><center id='arH77'></center></pre></bdo></b><th id='arH77'></th></span></q></dt></tr></i><div id='arH77'><tfoot id='arH77'></tfoot><dl id='arH77'><fieldset id='arH77'></fieldset></dl></div>
      <tfoot id='arH77'></tfoot>

    1. <legend id='arH77'><style id='arH77'><dir id='arH77'><q id='arH77'></q></dir></style></legend>

        <bdo id='arH77'></bdo><ul id='arH77'></ul>
    2. Oracle 从多个表中删除行

      Oracle deleting rows from multiple tables(Oracle 从多个表中删除行)
      <tfoot id='DE0xk'></tfoot>
      <i id='DE0xk'><tr id='DE0xk'><dt id='DE0xk'><q id='DE0xk'><span id='DE0xk'><b id='DE0xk'><form id='DE0xk'><ins id='DE0xk'></ins><ul id='DE0xk'></ul><sub id='DE0xk'></sub></form><legend id='DE0xk'></legend><bdo id='DE0xk'><pre id='DE0xk'><center id='DE0xk'></center></pre></bdo></b><th id='DE0xk'></th></span></q></dt></tr></i><div id='DE0xk'><tfoot id='DE0xk'></tfoot><dl id='DE0xk'><fieldset id='DE0xk'></fieldset></dl></div>

      <small id='DE0xk'></small><noframes id='DE0xk'>

          <tbody id='DE0xk'></tbody>

        • <bdo id='DE0xk'></bdo><ul id='DE0xk'></ul>

          1. <legend id='DE0xk'><style id='DE0xk'><dir id='DE0xk'><q id='DE0xk'></q></dir></style></legend>

                本文介绍了Oracle 从多个表中删除行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在尝试从多个表中删除行,但在 medewerkers m 中出现语法错误,

                i'm trying to delete rows from multiple tables but i'm getting a syntax error at medewerkers m,

                谁能告诉我我在这里做错了什么?:

                Can anyone tell me what i'm doing wrong here? :

                declare
                v_mnr medewerkers.mnr%type;
                procedure ontsla_med(p_mnr in medewerkers.mnr%type)
                IS
                BEGIN
                    DELETE FROM medewerkers m, INSCHRIJVINGEN i , UITVOERINGEN u WHERE m.MNR = p_mnr and i.cursus = p_mnr and u.docent = p_mnr;
                END ontsla_med;
                BEGIN
                    ontsla_med(7000);
                END;

                好像删除语句有误?

                推荐答案

                做不到.它必须是三个单独的删除.

                Can't do it. It has to be three separate deletes.

                DELETE 
                  FROM medewerkers
                 WHERE mnr = p_mnr;
                
                DELETE 
                  FROM UITVOERINGEN 
                 WHERE cursus = p_mnr;
                
                DELETE 
                  FROM UITVOERINGEN 
                 WHERE docent = p_mnr;
                

                这篇关于Oracle 从多个表中删除行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                How to redirect the output of DBMS_OUTPUT.PUT_LINE to a file?(如何将 DBMS_OUTPUT.PUT_LINE 的输出重定向到文件?)
                How do I get column datatype in Oracle with PL-SQL with low privileges?(如何使用低权限的 PL-SQL 在 Oracle 中获取列数据类型?)
                Get a list of all functions and procedures in an Oracle database(获取 Oracle 数据库中所有函数和过程的列表)
                Why cannot I create triggers on objects owned by SYS?(为什么我不能在 SYS 拥有的对象上创建触发器?)
                Returning result even for elements in IN list that don#39;t exist in table(即使对于表中不存在的 IN 列表中的元素也返回结果)
                Reset Sequence in oracle 11g(oracle 11g 中的重置序列)

                  <i id='UpA2q'><tr id='UpA2q'><dt id='UpA2q'><q id='UpA2q'><span id='UpA2q'><b id='UpA2q'><form id='UpA2q'><ins id='UpA2q'></ins><ul id='UpA2q'></ul><sub id='UpA2q'></sub></form><legend id='UpA2q'></legend><bdo id='UpA2q'><pre id='UpA2q'><center id='UpA2q'></center></pre></bdo></b><th id='UpA2q'></th></span></q></dt></tr></i><div id='UpA2q'><tfoot id='UpA2q'></tfoot><dl id='UpA2q'><fieldset id='UpA2q'></fieldset></dl></div>
                    <tbody id='UpA2q'></tbody>

                      <bdo id='UpA2q'></bdo><ul id='UpA2q'></ul>
                        <tfoot id='UpA2q'></tfoot>
                        <legend id='UpA2q'><style id='UpA2q'><dir id='UpA2q'><q id='UpA2q'></q></dir></style></legend>

                          <small id='UpA2q'></small><noframes id='UpA2q'>