Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to create some variable in function how i do that?

What I have tried:

Declare dat date;
--,start_date date,end_date date;
dat:='2016/07/03';
select extract(year from dat);


this is my error

ERROR: syntax error at or near "date"
LINE 1: Declare dat date;
^

please help me that
Posted
Updated 22-Jun-16 3:24am

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900