I have two tables:
Item purchases:
+----------------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------------------+--------------+------+-----+---------+----------------+
| item _name | varchar(60) | NO | | NULL | |
| customer_name | varchar(60) | NO | | NULL | |
| customer_email | varchar(100) | NO | | NULL | |
+----------------------+--------------+------+-----+---------+----------------+
Customer details:
+-----------------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-----------------+---------------+------+-----+---------+-------+
| first_name | varchar(60) | NO | | NULL | |
| surname | varchar(60) | NO | | NULL | |
| gender | enum('M','F') | NO | | NULL | |
| customer_email | varchar(100) | NO | | NULL | |
+-----------------+---------------+------+-----+---------+-------+
Since the data entered for column ‘customer_email’ will always be the same, is there a way to tell MySQL to share the same data for ‘customer_email’ for every table that has this column? I don’t want to have to duplicate the same database queries in my application.
Thanks in advance!