how to genarate random numbers in oracle for particular row?
Answer Posted / tanoy guhasarkar
the DBMS_RANDOM package provides a built-in random number
generator utility.
Using In Side A Block:--
DECLARE
my_random BINARY_INTEGER;
BEGIN
my_random := DBMS_RANDOM.RANDOM;
dbms_output.put_line(my_random);
end ;
Executing This Code, We Will Get A Random Number Every Time...
In Side A Select Statement :--
select DBMS_RANDOM.RANDOM from dual;
Note:--
This DBMS_RANDOM package included in oracle after oracle 8.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the sid in oracle?
Does facebook use oracle?
How to load excel data sheet to oracle database
What is the difference between I and G in Oracle?
defination of bitmap index
Explain what are the characteristics of data files?
What is connection pooling in oracle?
Explain the use of ignore option in imp command.
What is java oracle used for?
How to define and use table alias names in oracle?
Who developed oracle & when?
How to use attributes of the implicit cursor in oracle?
What is an oracle and why it is used?
What are the components of logical database structure in oracle database?
When system tablespace is created?