sql - using declare variables in ORACLE -


hope doing well. having syntax issue declaration in oracle. using these variables on ms sql server , work fine; however, how declare these in oracle?

use in ms sql server:

declare @from_dt datetime declare @end_dt  datetime declare @location  varchar(100)  set @from_dt = '04/01/2011' set @end_dt =  '05/09/2011' set  @location ='va' 

thanks much!

you cannot declare variables outside of pl/sql block.

the format of variable declarations inside pl/sql block described detailed in manual (including examples):

http://download.oracle.com/docs/cd/b28359_01/appdev.111/b28370/fundamentals.htm#cihggiah


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -