Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Using ON EXISTING UPDATE on ASE

 
   Database Help (Home) -> Sybase RSS
Next:  grant in a stored proc  
Author Message
Tony Woo

External


Since: Aug 23, 2008
Posts: 1



(Msg. 1) Posted: Sat Aug 23, 2008 12:49 am
Post subject: Using ON EXISTING UPDATE on ASE
Archived from groups: comp>databases>sybase (more info?)

Hi,
I'm new on useing ASE 15 and I would like to use the statement similar
to MySQL's REPLACE statement.
I have surfed the web and found the article "MySQL to Sybase ASE
Migrtion Guide", it said INSERT....ON EXISTING UPDATE as equivalent to
MySQL's REPLACE. However, I got the syntax error when I input something like
INSERT INTO table(key, field12) ON EXISTING UPDATE VALUES(1,2).
am I using the statement in the wrong way? Is there any alternative
way for MySQL's REPLACE?

Thanks.

 >> Stay informed about: Using ON EXISTING UPDATE on ASE 
Back to top
Login to vote
Bret_Halford

External


Since: Jul 14, 2008
Posts: 10



(Msg. 2) Posted: Sat Aug 23, 2008 12:49 am
Post subject: Re: Using ON EXISTING UPDATE on ASE [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Aug 22, 10:49 am, "Tony Woo" wrote:
> Hi,
>       I'm new on useing ASE 15 and I would like to use the statement similar
> to MySQL's REPLACE statement.
>       I have surfed the web and found the article "MySQL to Sybase ASE
> Migrtion Guide", it said INSERT....ON EXISTING UPDATE as equivalent to
> MySQL's REPLACE. However, I got the syntax error when I input something like
> INSERT INTO table(key, field12) ON EXISTING UPDATE VALUES(1,2).
>       am I using the statement in the wrong way? Is there any alternative
> way for MySQL's REPLACE?
>
>      Thanks.

Unfortunately, I believe that document is in error. It may be the
author confused
ASE and Adaptive Server Anywhere (which I think has that command).

The alternative would be to use and update followed by an insert where
not exists.

 >> Stay informed about: Using ON EXISTING UPDATE on ASE 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Problem with ASE 12.5 Backup Server - Hello everyone !!! My problem: I have recently installed ASE 12.5 on winxp. When I try to make a dump or load with isql or DBArtisan i get this message: "Can't open a connection to site 'SYB_BACKUP'. See the error log file in the SQL Server boot..

Tuning stored procedures - Hi Everyone; We are working on tuning a compact framework mobile application which uses the Sybase iAnywhere 9.0 as the database. Performance of the stored procedures have been really bad. But we are at our wits end trying to find out the Stored..

PERL DBI Sybase::DBD error --- Dynaloader.pm - Sybase.so - All - I hesitated to post this as I saw many similar postings in my trawlings. However I have been unable to determine the problem in relation to the answers I've seen for the similar problems. Basically I had a working version of DBI and Sybase:DBD..

does rownumber exist ? - Hello everyone, In a response of a query, I would like to select rows from the first row to the 10th row. And then later, I would like to select rows from the 11st row to 20th row.....And so on. I know that in Oracle DB, there is something which can..

Semistructured data in Sybase - Does (any version of) Sybase support the semistructured data model? Can XML documents be stored efficiently on a Sybase database server? What functionality (eg. indexing) and constraints (eg. schema enforcement) does Sybase offer to semistructured data...
   Database Help (Home) -> Sybase All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]