In Oracle Sql developer 11g, how do I generate a random integer and assign it to a variable? This is what I've tried so far:
S_TB := SELECT dbms_random.value(1,10) num FROM dual;
With this code I got error:
S_TB := SELECT dbms_random.value(1,10) num FROM dual
Error report -
Unknown Command
What is the proper way to solve my issue?