GithubHelp home page GithubHelp logo

Comments (2)

EUIDONGKIM avatar EUIDONGKIM commented on August 18, 2024 1

기존 관광지idx 및 코스idx로 프라이머리키를 설정하게 될시에,

코스_관광지 데이터가 추가되어야 할때 참조할 외래키(코스idx)가 없기때문에(코스 게시판이 생성되기 전 상황임)

sql구문의 parent key에러가 생깁니다.

그래서 코스-관광지의 식별변호를 두고 코스idx를 비식별관계로 두어서 결과를 진행하기로 했습니다.

(사실 코스-관광지의 식별번호는 큰 의미가 없지만 단지 중복 DB데이터 입력의 방지를 위함임)

다른 사이트(구석구석)의 회원 코스등록을 확인해본 결과 그쪽에서는 코스 게시물을 본인이 만들고 관광지 담기를 통해서
등록을 하는 절차를 밟고있으나, (즉 코스 게시판 껍떼기 생성(코스idx 생성) 후에 코스_관광지 DB에 관광지를 해당 코스에
담기를 통해서 등록가능) 이 부분은 현재 구현이 힘들기 때문에 다양한 방식으로 시도해봐야 할 것 같습니다.

구석구석은 코스게시물생성후에 사람들한테 보여주는 걸 제한 걸었음
(코스 게시물은 이미 생성되었으나,조건을 통해서 등록된 관광지의 숫자 등을 통해서 사실 코스 Insert가 먼저이고
최종 update를 통해서 사람들에게 보여줄지 말지를 결정지은 시스템)

from hexagram_semi.

EUIDONGKIM avatar EUIDONGKIM commented on August 18, 2024

image

ERD는 이렇게 바꾸어 놓았습니다..

from hexagram_semi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.