I think ... I understand your question - several data tables, all with auto-increment identifiers?
My solution would be to pre-add an identifier with a letter (as you said) to distinguish it.
An example is a dataset for "cars" that I would do:
<table> <tr id="cars_1"> ... </tr> <tr id="cars_2"> ... </tr> <tr id="cars_3"> ... </tr> </table>
Later, if you have another table, bikes, you would do:
<table> <tr id="bike_1"> ... </tr> <tr id="bike_2"> ... </tr> <tr id="bike_3"> ... </tr> </table>
The end result will be a unique identifier, given the value of the db id, so you would do a simple check (if cars, then do it, etc.), then split the prefix (cars from id 1, you will use something like PHP expolode() fn).
Hope this clarifies, and that I understand your question.
Jakub source share