Skip to content

Commit

Permalink
Create V0006__Populate_table.sql
Browse files Browse the repository at this point in the history
Add dummy data
  • Loading branch information
kunlebalogun authored Oct 23, 2023
1 parent b962f99 commit 906dcd4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sql/V0006__Populate_table.sql
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 906dcd4

Please sign in to comment.