Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are no foreign keys in the database #3

Open
johnchen902 opened this issue Apr 15, 2017 · 3 comments
Open

There are no foreign keys in the database #3

johnchen902 opened this issue Apr 15, 2017 · 3 comments

Comments

@johnchen902
Copy link

No description provided.

@morris821028
Copy link
Member

morris821028 commented Apr 16, 2017

For example, set the foreign key for existing table

ALTER TABLE submissions
ADD FOREIGN KEY (pid) REFERENCES problems (pid);

@morris821028
Copy link
Member

這真的需要嗎?

@johnchen902
Copy link
Author

Probably you don't if your code doesn't and won't have any bug and nobody will execute bad SQL statements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants