<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Update query in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/update-query/m-p/4505111#M653979</link>
    <description>Armando&lt;BR /&gt;&lt;BR /&gt;sounds like you need a trigger on this table.&lt;BR /&gt;see associated documentation&lt;BR /&gt;&lt;A href="http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7004.htm#SQLRF01405" target="_blank"&gt;http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7004.htm#SQLRF01405&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_triggers.htm#ADFNS012" target="_blank"&gt;http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_triggers.htm#ADFNS012&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;In essence you can blank these fields as rows are inserted into the "REGULATORY_UPDATE" table.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
    <pubDate>Wed, 30 Sep 2009 09:25:32 GMT</pubDate>
    <dc:creator>Jean-Luc Oudart</dc:creator>
    <dc:date>2009-09-30T09:25:32Z</dc:date>
    <item>
      <title>Update query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-query/m-p/4505110#M653978</link>
      <description>I would like to clear some fields from the BUG table that are auto populated so that they do not appear on the email template that is sent out.&lt;BR /&gt;&lt;BR /&gt;I would like to have this statement execute after new defects have been entered.  Please help.&lt;BR /&gt;&lt;BR /&gt;My SQL statement is:&lt;BR /&gt;&lt;BR /&gt;UPDATE REGULATORY_UPDATE.BUG&lt;BR /&gt;SET BG_REPRODUCIBLE = ' ', BG_DETECTED_BY= ' '</description>
      <pubDate>Tue, 29 Sep 2009 17:27:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-query/m-p/4505110#M653978</guid>
      <dc:creator>Armando Hernandez</dc:creator>
      <dc:date>2009-09-29T17:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Update query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-query/m-p/4505111#M653979</link>
      <description>Armando&lt;BR /&gt;&lt;BR /&gt;sounds like you need a trigger on this table.&lt;BR /&gt;see associated documentation&lt;BR /&gt;&lt;A href="http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7004.htm#SQLRF01405" target="_blank"&gt;http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7004.htm#SQLRF01405&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_triggers.htm#ADFNS012" target="_blank"&gt;http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_triggers.htm#ADFNS012&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;In essence you can blank these fields as rows are inserted into the "REGULATORY_UPDATE" table.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Wed, 30 Sep 2009 09:25:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-query/m-p/4505111#M653979</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2009-09-30T09:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Update query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-query/m-p/4505112#M653980</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Create a trigger like this:&lt;BR /&gt;&lt;BR /&gt;CREATE OR REPLACE TRIGGER BUG_BI&lt;BR /&gt;before insert on REGULATORY_UPDATE.BUG&lt;BR /&gt;referencing new as new&lt;BR /&gt;            old as old&lt;BR /&gt;for each row&lt;BR /&gt;&lt;BR /&gt;begin&lt;BR /&gt; :new.BG_REPRODUCIBLE = null;&lt;BR /&gt; :new.BG_DETECTED_BY = null;&lt;BR /&gt;end;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Sep 2009 10:57:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-query/m-p/4505112#M653980</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2009-09-30T10:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Update query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-query/m-p/4505113#M653981</link>
      <description>CREATE or REPLACE TRIGGER BUG_BI&lt;BR /&gt;before insert ON REGULATORY_UPDATE.BUG&lt;BR /&gt;WHEN new as null&lt;BR /&gt;old as Not Null&lt;BR /&gt;for each row&lt;BR /&gt;&lt;BR /&gt;begin&lt;BR /&gt;:new.BG_REPRODUCIBLE = null;&lt;BR /&gt;:new.BG_DETECTED_BY = null;&lt;BR /&gt;end;&lt;BR /&gt;/&lt;BR /&gt;&lt;BR /&gt;When I enter this into the HP Quality Center workflow - Script editor engine it highlights the first line and gives me a message of [Error] (L492: c8): Syntax error&lt;BR /&gt;&lt;BR /&gt;All I am trying to do here and I am sure guys that it is my fault but I am not getting.  I appreciate your patience...&lt;BR /&gt;&lt;BR /&gt;I have a table called BUGS in this table there are two fields called BG_DETECTED_BY and BG_REPRODUCIBLE that get auto populated.  I wish to make these two fields blank or null after it is updated.  How can I do this.  Most of the code in this Workflow - Script Editor seems to be VBScript.&lt;BR /&gt;&lt;BR /&gt;Please help...  Again thank you for your patience..</description>
      <pubDate>Wed, 30 Sep 2009 15:37:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-query/m-p/4505113#M653981</guid>
      <dc:creator>Armando Hernandez</dc:creator>
      <dc:date>2009-09-30T15:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Update query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-query/m-p/4505114#M653982</link>
      <description>Armando&lt;BR /&gt;&lt;BR /&gt;there are errors in the syntax.&lt;BR /&gt;use the show error command to indicate the line and error.&lt;BR /&gt;&lt;BR /&gt;SQL&amp;gt; show error&lt;BR /&gt;Errors for TRIGGER BUG_BI:&lt;BR /&gt;&lt;BR /&gt;LINE/COL ERROR&lt;BR /&gt;-------- -----------------------------------------------------------------&lt;BR /&gt;2/13     PLS-00103: Encountered the symbol "=" when expecting one of the&lt;BR /&gt;         following:&lt;BR /&gt;         := . ( @ % ; indicator&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the trigger should look like this :&lt;BR /&gt;CREATE OR REPLACE TRIGGER BUG_BI&lt;BR /&gt;before insert on XXXX.BGTEST&lt;BR /&gt;referencing new as new&lt;BR /&gt;old as old&lt;BR /&gt;for each row&lt;BR /&gt;begin&lt;BR /&gt;:new.BG_REG := null;&lt;BR /&gt;:new.BG_REASON := null;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;/&lt;BR /&gt;&lt;BR /&gt;Note := instead of equal sign.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Fri, 02 Oct 2009 08:52:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-query/m-p/4505114#M653982</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2009-10-02T08:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Update query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/update-query/m-p/4505115#M653983</link>
      <description>Hi Armando Hernandez,&lt;BR /&gt;&lt;BR /&gt;Please don't mind this ITRC site is for HP server related issue.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Fri, 02 Oct 2009 09:13:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/update-query/m-p/4505115#M653983</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-10-02T09:13:52Z</dc:date>
    </item>
  </channel>
</rss>

