I have two mysql tables both with primary keys (the records ‘id’ field). The tables are used by a perl application. I want to build a hash (in perl) that includes records from both tables keyed off of their ids. Of course, this doesn’t work because the ids are not unique between the tables.
Is there anyway to keep the primary unique across two tables in mysql?
thanks.
Use
tablename . idas the key in the Perl hash.