I have 3 tables they are
1. User { id, name, mobile}
2. Temp_User { id, name, mobile}
3. In_Out { id, intime, outtime}
Now I want to make id
in In_Out
as a foreign key and it should refer User.id
as well as Temp_User.id
. That is, the id
value must be present either in User
or in Temp_User
.
Is it possible in mysql?
If anyone knows, please give me the ALTER
command for the In_Out
table strcture. I have already created the table.
Any help appreciated.