1
Data from user accounts
id  nome    sobrenome   pais    estado  cidade  telefone    url_perfil
Login data of users
id  email   senha   prioridade
My doubts are:
- How can I link them to foreign keyusingstring?
- It is more recommended to do this with the ID? Why? (There may be problems when a user registers their data in a table, and their account has 2id'different s being one for each table, making it difficult to use the foreign key ?)
- For the use of Foreign key, it is necessary that the ENGINEof the bank beINNODB?
- How would the Joinfor these tables ?
PS: I searched for stack and other places if there was a "question" that answered my doubts, or at least gave me a light, but I did not find, and because of that I am opening this
http://stackoverflow.com/questions/1545253/how-to-add-a-column-and-make-it-a-foreign-key-in-single-mysql-statement
– Roknauta
translation ? would be better :3
– Murilo Melo