George Spears
Member
Hi,
I am using OracleScript to execute a set of commands. What I need to be able to do is to generate certain types of pseudo-random data, for example RAND_CHAR_10 would be a 10 character random string.
I need to be able to allow the end user to write the SQL for the OracleScript component, such as
Insert into X values (&rand_char_10);
and then have the Oracle script component generate a 10 character string, and do the variable substitution.
Where I'm having the problem is determining how to exchange '&rand_char_10' for 'XYKIuj7R3S' or whatever the random value is.
What should I be looking at?
Thanks
I am using OracleScript to execute a set of commands. What I need to be able to do is to generate certain types of pseudo-random data, for example RAND_CHAR_10 would be a 10 character random string.
I need to be able to allow the end user to write the SQL for the OracleScript component, such as
Insert into X values (&rand_char_10);
and then have the Oracle script component generate a 10 character string, and do the variable substitution.
Where I'm having the problem is determining how to exchange '&rand_char_10' for 'XYKIuj7R3S' or whatever the random value is.
What should I be looking at?
Thanks