dbTalk Databases Forums  

HOW? Update with Rownum and Order By

comp.database.oracle comp.database.oracle


Discuss HOW? Update with Rownum and Order By in the comp.database.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sandy
 
Posts: n/a

Default HOW? Update with Rownum and Order By - 08-09-2004 , 10:54 AM






How can I perform such SQL in Oracle:

Pseudo

EXEC SQL
UPDATE MYTABLE
SET STATUS = :s
WHERE STATUS = 0
AND ROWNUM = 1
ORDER BY TIME;

Pro*C does not like the order by statement.

Thanks
Sandra

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.