Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 08FC8475A1E for ; Fri, 27 Dec 2002 00:53:47 -0500 (EST) Received: from lucidindia.net (unknown [61.11.73.194]) by postgresql.org (Postfix) with ESMTP id 2FEEC4753A1 for ; Fri, 27 Dec 2002 00:53:41 -0500 (EST) Received: from a4005 ([192.168.1.18]) by lucidindia.net (8.11.6/8.11.6) with SMTP id gBR5riE13820; Fri, 27 Dec 2002 05:53:44 GMT Message-ID: <000501c2ad6c$4d53b580$1201a8c0@a4005> From: "shreedhar" To: "Postgres" , "Bruce Momjian" References: <200212270511.gBR5BnD13633@candle.pha.pa.us> Subject: Re: Is there any eqvivalent or alternative to UPDATE(column)orCOLUMNS_UPDATED() of SQLServer2000 Date: Fri, 27 Dec 2002 11:23:38 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/308 X-Sequence-Number: 6803 Dear Momjian, I need solution for the problem stated in subject. (i.e.) any method to know whether a record is Previously updated or not ? Sreedhar ----- Original Message ----- From: "Bruce Momjian" To: "shreedhar" Sent: Friday, December 27, 2002 10:41 AM Subject: Re: [ADMIN] Is there any eqvivalent or alternative to UPDATE(column)orCOLUMNS_UPDATED() of SQLServer2000 > > Sure. As root, use the 'date' command to fix it. > > -------------------------------------------------------------------------- - > > shreedhar wrote: > > Sorry, > > > > Because it is some problem in my system. So, it has shown Fri, 15 Mar 2002 > > 17:27:30 +0530. > > > > Kindly any body give solution to my problem. > > > > Sreedhar. > > ----- Original Message ----- > > From: "Bruce Momjian" > > To: "shreedhar" > > Sent: Thursday, December 26, 2002 11:03 PM > > Subject: Re: [ADMIN] Is there any eqvivalent or alternative to > > UPDATE(column)or COLUMNS_UPDATED() of SQLServer2000 > > > > > > > > > > Your email is dated: > > > > > > Date: Fri, 15 Mar 2002 17:27:30 +0530 > > > > > > -------------------------------------------------------------------------- > > - > > > > > > shreedhar wrote: > > > > Is there any eqvivalent or alternative to the following IF > > UPDATE(column) or > > > > IF(COLUMNS_UPDATED()) of SQLServer2000. > > > > > > > > IF UPDATE (column) > > > > > > > > Tests for an INSERT or UPDATE action to a specified column and is not > > used > > > > with DELETE operations. More than one column can be specified. Because > > the > > > > table name is specified in the ON clause, do not include the table name > > > > before the column name in an IF UPDATE clause. To test for an INSERT or > > > > UPDATE action for more than one column, specify a separate > > UPDATE(column) > > > > clause following the first one. IF UPDATE will return the TRUE value in > > > > INSERT actions because the columns have either explicit values or > > implicit > > > > (NULL) values inserted. > > > > > > > > IF (COLUMNS_UPDATED()) > > > > > > > > Tests, in an INSERT or UPDATE trigger only, whether the mentioned column > > or > > > > columns were inserted or updated. COLUMNS_UPDATED returns a varbinary > > bit > > > > pattern that indicates which columns in the table were inserted or > > updated. > > > > > > > > Thanks And Regards, > > > > > > > > Sreedhar > > > > > > > > > > > > > > > > > > > > > > > > "Faith, faith, faith in ourselves, faith, faith in God, this is the > > secret > > > > of greatness. > > > > If you have faith in all the three hundred and thirty millions of your > > > > mythological gods, > > > > and in all the gods which foreigners have now and again introduced into > > your > > > > midst, > > > > and still have no faith in yourselves, there is no salvation for you. " > > > > (III. 190) > > > > > > > > > > > > > > > > ---------------------------(end of broadcast)--------------------------- > > > > TIP 5: Have you checked our extensive FAQ? > > > > > > > > http://www.postgresql.org/users-lounge/docs/faq.html > > > > > > > > > > -- > > > Bruce Momjian | http://candle.pha.pa.us > > > pgman@candle.pha.pa.us | (610) 359-1001 > > > + If your life is a hard drive, | 13 Roberts Road > > > + Christ can be your backup. | Newtown Square, Pennsylvania > > 19073 > > > > > > > > > -- > Bruce Momjian | http://candle.pha.pa.us > pgman@candle.pha.pa.us | (610) 359-1001 > + If your life is a hard drive, | 13 Roberts Road > + Christ can be your backup. | Newtown Square, Pennsylvania 19073 >