How to avoid Inserting invalid values into a table with relations with mysql?
Using planetscale so I cant reference other columns
My schema:
this query runs without problems:
how do I avoid this? can I make the query automatically return error without manually checking if mainName exists in mainTable first?
0 Replies