Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 need set in oracle

Author  Topic 

rajasekhar857
Constraint Violating Yak Guru

396 Posts

Posted - 2009-10-06 : 01:41:24
DECLARE @MEDICATIONS_ID NUMERIC(20, 0)
SET @MEDICATIONS_ID = (SELECT MAX(MEDICATIONS_ID) FROM EMRCimsMedicationsLkup)


how to write the above one in oracle.

sanoj_av
Posting Yak Master

118 Posts

Posted - 2009-10-06 : 01:55:02
DECLARE MEDICATIONS_ID NUMERIC(20, 0)

SELECT MAX(MEDICATIONS_ID) INTO MEDICATIONS_ID FROM EMRCimsMedicationsLkup

Go to Top of Page
   

- Advertisement -