BE/기타
-
더미데이터 생성BE/기타 2024. 11. 15. 21:50
1. SQL 문을 활용한 대량 더미 데이터 생성 1-1. PostgreSQL 예시generate_series, random(), uuid_generate_v4() 함수 활용랜덤 데이터 생성과 날짜 처리에 강력한 기능 제공-- 1000명의 사용자 데이터를 생성INSERT INTO p_user (id, username, email, password, created_at)SELECT uuid_generate_v4(), -- 랜덤 UUID 'user_' || generate_series(1, 1000), -- user_1, user_2, ... 'user_' || generate_series(1, 1000) || '@example.com', -- 이메일 'password123', N..
-
PostgreSQL 설치 (MacOS) / DB 및 유저 생성 + 인텔리제이 연결BE/기타 2024. 11. 7. 21:35
PostgreSQL 설치하기 1. 공식웹사이트에서 설치 https://www.postgresql.org/download/macosx/ PostgreSQL: macOS packagesmacOS packages You can get macOS PostgreSQL packages from several sources. Interactive installer by EDB Download the installer certified by EDB for all supported PostgreSQL versions. Note! This installer is hosted by EDB and not on the PostgreSQL communitywww.postgresql.org 웹사이트 접속 후 "Download t..