Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 23492 invoked from network); 3 Mar 2008 13:18:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Mar 2008 13:18:00 -0000 Received: (qmail 85986 invoked by uid 500); 3 Mar 2008 13:17:55 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 85885 invoked by uid 500); 3 Mar 2008 13:17:55 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 85716 invoked by uid 99); 3 Mar 2008 13:17:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2008 05:17:54 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2008 13:17:15 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8F763234C08B for ; Mon, 3 Mar 2008 05:16:50 -0800 (PST) Message-ID: <1989435719.1204550210583.JavaMail.jira@brutus> Date: Mon, 3 Mar 2008 05:16:50 -0800 (PST) From: "Jazarine Jamal (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-2012) The Syntax of the UPDATE and DELETE statements is not correct in the reference manual In-Reply-To: <26693046.1161995718987.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jazarine Jamal resolved DERBY-2012. ----------------------------------- Resolution: Fixed > The Syntax of the UPDATE and DELETE statements is not correct in the reference manual > ------------------------------------------------------------------------------------- > > Key: DERBY-2012 > URL: https://issues.apache.org/jira/browse/DERBY-2012 > Project: Derby > Issue Type: Improvement > Components: Documentation > Reporter: Christian d'Heureuse > Assignee: Abhilash T.G > Priority: Minor > Attachments: DERBY-2012.diff > > > The syntax description of the UPDATE and DELETE statements in the reference manual does not imply that an alias name may be specified for the table name. > The statements are currently documented as: > UPDATE table-Name > SET ... > DELETE FROM table-Name > [ WHERE ... ] > This should be changed to: > UPDATE table-Name [ [ AS ] correlation-Name ] > SET ... > DELETE FROM table-Name [ [ AS ] correlation-Name ] > [ WHERE ... ] > (Table alias names for UPDATE and DELETE are important for the WHERE clauses, e.g. when the same table is used a second time within a subquery in the WHERE condition, e.g.: > UPDATE table1 a > SET ... > WHERE EXISTS ( > SELECT * FROM table1 b WHERE a.field1 = b.field2 ) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.