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
How to create a single index for multiple columns?
What is an oracle recycle bin?
what is Single Byte Overhead...?
How to convert numbers to characters in oracle?
What is materialized view in Oracle?
Please send me Informatica 8.1 certification dumps, my mail id mona85gupta@gmail.com
What is set operator oracle?
When do I need to use a semicolon vs a slash in oracle sql?
Difference between the “verify” and “feedback” command?
What is the relation of a user account and a schema in oracle?
What are dml statements in oracle?
What is the use of file param in imp command?
What do you mean by cdb and pdb in oracle 12c?
In which language oracle has been developed?
22. Display the order number, number of lines in the order, total number of items and total value for all orders that have a total value greater than $100