Random Data GeneratorApril 9, 2014 at 2:54 pm | Posted in Oracle Developement | 1 Comment
Tags: data, oracle, pl/sql, sql, xml
Today I came across this awesome website which will automatically generate data for you, and spit it out in different formats. These include XML, CSV, Excel, and more. But the coolest format of course is Oracle SQL. The website will generate the table creation script and the insert statements for your data:
CREATE TABLE myTable ( id number primary key, name varchar2(255) default NULL, city varchar2(255), age varchar2(50) default NULL, zip varchar2(10) default NULL, PRIMARY KEY (id) ) AUTO_INCREMENT=1; INSERT INTO myTable (name,city,age,zip) VALUES ('Ian Parks','New Orleans',15,'8587'); INSERT INTO myTable (name,city,age,zip) VALUES ('Silas Blackburn','Dunbar',40,'97129'); INSERT INTO myTable (name,city,age,zip) VALUES ('Kenyon Hammond','Varsenare',60,'6744');
Note: You may have to work with the quotes.
How cool is that?
I’ve previously blogged about another way of generating random data, so take a look at