개발/postgresql
INSERT 중복되는 값을 쿼리 내부에서 예외처리
https://stackoverflow.com/questions/4069718/postgres-insert-if-does-not-exist-already Postgres: INSERT if does not exist already I'm using Python to write to a postgres database: sql_string = "INSERT INTO hundred (name,name_slug,status) VALUES (" sql_string += hundred + ", '" + hundred_slug + "', " + status + ");" cursor.ex... stackoverflow.com 위 사이트에서 존재하지 않으면 insert하지 않도록 하는 쿼리문이 필요하였다. WITH i..
2023. 1. 20. 20:37