Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: How to convert Sybase update to suite Oracle ???

Re: How to convert Sybase update to suite Oracle ???

From: Malcolm Dew-Jones <yf110_at_vtn1.victoria.tc.ca>
Date: 1 Jul 2005 14:18:48 -0800
Message-ID: <42c5b338@news.victoria.tc.ca>


vipra (gandrakota_at_mailcity.com) wrote:
: Hi, what is the equivalent oracle DML for the below mentioned sybase one,

: update Table1
: set a.column3 = b.value3,
: a.column4 = b.value4,
: a.column5 = b.value5,
: a.column6 = b.value6
: from Table1 a,
: Table2 b
: where a.column1 = b.column1
: and a.column2 = 1
: and b.column2 > '28-APR-05'
: and b.column2 < '01-MAY-05'

: Works fine in Sybase but errors out in Oracle.

looks fine enough, but the dates should use to_date() to ensure the correct interpretation.

        (untested)

        to_date('28-APR-05','DD-MON-YY')

--

This space not for rent.
Received on Fri Jul 01 2005 - 17:18:48 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US