Reputation: 25
So, i was on database class yesterday on the college and the theacher tell us to make a simple excercise to show us how foreign keys work, so, i carry a laptop with antergos to the college, previuously i have installed MariaDB, but my fellows had MySQL on windows, we made the tables with a CHECK constraint to verify age >= 18, but it didn't work for everyone, i came across in MySQL manual that:
CHECK is parsed but ignored.
BUT in my windows machine CHECK works with MariaDB and i don't know why.
MariaDB prompt my Linux machine
MariaDB prompt on my windows machine
Version in windows: 10.3.7-MariaDB Version in linux: 10.1.36-MariaDB
Upvotes: 2
Views: 105