I'm modifying an open-source program so I'm in a bit over my head. It's a system for tracking personal information built on mysql.
There is a table "person_per" in it is a column "per_ID. When a new person is added they get the next number.
I want a new table "follow_up". I need this table to have a "per_ID" column.(can I have a duplicate name if its on a different table?) So that any new info is still linked to the main record.
My biggest concern is that new records get a row on the "follow_up" table. It looks like slave / master might be the way to do that, but i have NO idea how to make that happen.
Im not sure if this is relevent....
mysql> SHOW INDEXES FROM person_per;
+------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| person_per | 0 | PRIMARY | 1 | per_ID | A | 413 | NULL | NULL | | BTREE | | |
| person_per | 1 | per_ID | 1 | per_ID | A | 413 | NULL | NULL | | BTREE | | |
+------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
2 rows in set (0.00 sec)