Simple Oracle variable SQL Assignment

后端 未结 5 518
一整个雨季
一整个雨季 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条回答
  •  鱼传尺愫
    2021-01-17 20:41

    Take in mind that Oracle's PL/SQL is not SQL.

    PL/SQL is a procedural language. SQL is not procedural, but you can define "variables" the user can enter via the "&var" syntax (see http://www.orafaq.com/node/515).

提交回复
热议问题