Advertisement
Azamatik

Untitled

May 21st, 2024
1,237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.15 KB | None | 0 0
  1. # psql \
  2.         --host=localhost \
  3.         --port=5432 \
  4.         --username=dev_user \
  5.         --password \
  6.         users
  7. Password: password12345
  8. psql (14.11 (Ubuntu 14.11-0ubuntu0.22.04.1), server 14.1)
  9. Type "help" for help.
  10.  
  11. users=#
  12. users=#
  13. users=# create table users CREATE TABLE users (
  14.     id SERIAL PRIMARY KEY,
  15.     username VARCHAR(50),
  16.     age INTEGER
  17. );
  18. users=# INSERT INTO users (username, age) VALUES ('Alice', 25);
  19. INSERT INTO users (username, age) VALUES ('Bob', 30);
  20. INSERT INTO users (username, age) VALUES ('Charlie', 28);
  21. INSERT INTO users (username, age) VALUES ('David', 35);
  22. INSERT INTO users (username, age) VALUES ('Eva', 22);
  23. INSERT INTO users (username, age) VALUES ('Frank', 40);
  24. INSERT INTO users (username, age) VALUES ('Grace', 33);
  25. INSERT INTO users (username, age) VALUES ('Hannah', 29);
  26. INSERT INTO users (username, age) VALUES ('Iris', 27);
  27. INSERT INTO users (username, age) VALUES ('Jack', 32);
  28. INSERT INTO users (username, age) VALUES ('Kelly', 26);
  29. INSERT INTO users (username, age) VALUES ('Liam', 31);
  30. INSERT INTO users (username, age) VALUES ('Mia', 24);
  31. INSERT INTO users (username, age) VALUES ('Noah', 37);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement