<div>Hi all,</div>
<div> </div>
<div>I tried to make a column in the table 'student_course' foreign key using the query </div>
<div> </div>
<div>"ALTER TABLE student_course ADD FOREIGN KEY (Course_Id) REFERENCES course(Id)";</div>
<div> </div>
<div>I also got the success message that the query has been executed successfully.</div>
<div> </div>
<div>But when I tried the query "SHOW TABLE STATUS FROM db_name LIKE 'student_course' ;" </div>
<div>to get foreign key information from the comments, the comments were empty.</div>
<div> </div>
<div>I also used the function in libraries/relation.lib.php PMA_getForeigners() but the result is empty.</div>
<div> </div>
<div>I think the foreign key is not being created properly so tell me the correct syntax for creating the foreign key.</div>
<div> </div>
<div>I need help ASAP.</div>
<div> </div>
<div>Regard,</div>
<div>Zahra.</div>