Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Translate from SQL Server to Oracle

Status
Not open for further replies.

howzatUK

IS-IT--Management
Oct 14, 2005
23
0
0
GB
declare @newKey integer
select @newKey = coalesce(max(actionkey),0)+1 from tbale_name
update tableName set NewActionKey=@newKey, @newKey=@newKey+1
update tablename set ActionKey = @newKey+2
go

Can anyone help me translate this SQL server syntax into something that Oracle will understand. I am a complete newbie to Oracle and need to get this to work.

Please!!! and Many thanks!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top