I want to test some schemas and indexes, and I was wondering if there is a functionality in PL/SQL Developer that can generate test data (so I won't have to create sequences and loops to insert data in the tables).
相关问题
- NOT DISTINCT query in mySQL
- Can I skip certificate verification oracle utl_htt
- Can I skip certificate verification oracle utl_htt
- Flush single app django 1.9
- how to calculate sum time with data type char in o
Loops and PL/SQL aren't always necessary; this trick might be helpful:
will generate 100 records, named Employee 1 through Employee 100 with random "round" salaries between 2000 and 9000.
The two main techniques are:
connect by level <= n
to generate n rows in a query on dual.dbms_random
package; there's also a very useful functiondbms_random.string
which can be used -- like its name suggests -- to generate random strings of a certain length containing certain characters.