Advertisement
08121998

Untitled

Apr 6th, 2020
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. info = 'INSERT INTO "user" ("username", "email", "name", "password", "isSSO", "role", "studyProgram", "npm") VALUES'
  2. jumlah = 50 # bisa diganti sesukanya
  3. for i in range(jumlah):
  4.     info += "\n('gem1', '{}@gmail.com', 'Gema', 'bl', false, 'Student', 'boo', '{}')".format(i, i)
  5.     if i == jumlah - 1:
  6.         info += ";"
  7.     else:
  8.         info += ","
  9. print(info)
  10.  
  11. # Copy hasil print(info) ke pgadmin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement