This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
arrays.firstnames[s.a % ARRAY_LENGTH(arrays.firstnames,1) + 1] AS firstname, | |
substring('ABCDEFGHIJKLMNOPQRSTUVWXYZ' from s.a%26+1 for 1) AS middlename, | |
arrays.lastnames[s.a % ARRAY_LENGTH(arrays.lastnames,1) + 1] AS lastname | |
FROM generate_series(1,300) AS s(a) -- number of names to generate | |
CROSS JOIN( | |
SELECT ARRAY[ | |
'Adam','Bill','Bob','Calvin','Donald','Dwight','Frank','Fred','George','Howard', | |
'James','John','Jacob','Jack','Martin','Matthew','Max','Michael', | |
'Paul','Peter','Phil','Roland','Ronald','Samuel','Steve','Theo','Warren','William', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
20180828 code fixed | |
$ pip freeze | |
numpy==1.15.1 | |
Pillow==5.2.0 | |
pkg-resources==0.0.0 | |
""" |
NewerOlder