• How to add FOREIGN KEY through ALTER?

    Answered

    How to add FOREIGN KEY through ALTER?

    Silver Member Asked on August 6, 2018 in MYSQL.
    Add Comment
  • 1 Answer(s)
    Best answer
     ALTER TABLE table1 ADD FOREIGN KEY (id1) REFERENCES table2(id2);
     

     

    How to add FOREIGN KEY through ALTER?

    Silver Member Answered on August 6, 2018.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.