I need to do this select statement in Oracle:
(example in TSQL for MS SQL):
select @maxvalue = isnull(max(MYFIELD),0) from mytable
Oracle I think is something like this:
select nvl(max(MYFIELD),0) into maxvalue from mytable
BUT, can I just call the oracle statement having loaded up the parameter in the .NET connector maxvalue or do I need some BEGIN END voodoo?
(I am using the Oracle .NET connetor rather than the MS one.)
You can do both (with or without “voodoo”):