I am new to database.
my question is that i have created a table signUp whose columns are
id, first name, last name, email and country.
and i want to create a table named accout_recharge whose columns are (email,balance)
and whenever i insert a record into signup table the newly added email in the signup table also appear in account_recharge table using references or foreign key or whatever is required but without duplication.
you can try this
MySql Foreign Key here you find more detail about foreign key reference
Update: I forget to tell you that foreign key reference always some kind of
indexedcolumn. so you need to turn you email column in an index. that why you are getting error: 150