php - How best to structure this MySQL database -


I'm sure how many questions here are "How do I get it structured" so that I hope that any other foot A habitual step at the fingertips of

  • I will have an ID (integer) which will be a unique predsigned identifier (hence the database should not be automatically increased).
  • Each ID must belong to the GoalTemp (integer) field.
  • And at the end of each ID, this pair associated with this link should have potential unlimited amount; Temporary (integer) time (date / time .. auto-specified);

    Then it looks in my mind

    • ID: 124345
    • Target: 400
    • temps: [100, 4/12 / 02-11: 22: 00], [102, 4/12 / 2-11: 22: 20], [104, 4/12 / 02-11: 22: 40]

      I am going to use PHP for the interface with this database, and I can also use phpMyAdmin to do this.

      How do I here

      Table 1: < / P>

      • ID (int)
      • Target (int)

        Table_2:

        • Table 1_ID (int, FK)
        • Temporary (int)
        • Time (Timestamp)

          PS: You have tables The primary key should also be there, but I think you already know that

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -