HI All,
i am this is a very basic question but i am new to oracle syntax after 5 years of SQL and i am finding it hard to adapt. I am trying to work out how to use variables in oracle to do something similar to :
declare @CompanyName char(100)
declare @RMTID
set @CompanyName =
(select companyname where RMTid = @variable)
print @companyname.
This seems so easy in TSQL, but i have not yet worked out how the syntax works in oracle. I am receiving lots of different syntax errors etc.
Some help on this would be very much appreciated
Thanks in advance for your help
i am this is a very basic question but i am new to oracle syntax after 5 years of SQL and i am finding it hard to adapt. I am trying to work out how to use variables in oracle to do something similar to :
declare @CompanyName char(100)
declare @RMTID
set @CompanyName =
(select companyname where RMTid = @variable)
print @companyname.
This seems so easy in TSQL, but i have not yet worked out how the syntax works in oracle. I am receiving lots of different syntax errors etc.
Some help on this would be very much appreciated
Thanks in advance for your help