Simple Oracle variable SQL Assignment

后端 未结 5 520
一整个雨季
一整个雨季 2021-01-17 20:35

Despite having spent an hour researching I can\'t seem to figure out how to correctly define a variable and then use it in your SQL.

This is what I have so far produ

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-17 20:50

    Solution

    DEF  startDate = to_date('03/11/2011', 'dd/mm/yyyy');
    Select &startDate from dual;
    

提交回复
热议问题