From 906dcd4fad7b8da66d1840395a6e012dee914062 Mon Sep 17 00:00:00 2001 From: Kunle Balogun Date: Mon, 23 Oct 2023 17:48:38 +0100 Subject: [PATCH] Create V0006__Populate_table.sql Add dummy data --- sql/V0006__Populate_table.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 sql/V0006__Populate_table.sql diff --git a/sql/V0006__Populate_table.sql b/sql/V0006__Populate_table.sql new file mode 100644 index 0000000..c5501a4 --- /dev/null +++ b/sql/V0006__Populate_table.sql @@ -0,0 +1,9 @@ +-- Insert 500 rows of sample data into the customer table +INSERT INTO customer.customer6 (first_name, last_name, email, phone_number, address) +SELECT + 'First' || i, + 'Last' || i, + 'email' || i || '@example.com', + '555-1234-' || LPAD(i::TEXT, 4, '0'), + 'Address' || i +FROM generate_series(1, 500) AS i;