there are several ways to approach this, but your idea of storing the table name isn't one of the good ones
one approach is to have a separate comment table for each table that allows comments
this is the simplest and easiest, and the only people who don't like it are usually programmers who have spent their entire lives looking (often needlessly) to make "optimizations"
another approach is to ask why in the world would you have separate tables for cars, trucks, and suvs, when you could have just one table for vehicles?
in fact, this is the direction you should take -- a table for vehicles, and then of course only one comment table, and in addition, you could have secondary tables for cars and trucks and suvs if there is enough difference in the data columns that these different types of vehicles require
(and if there aren't enough differences, then of course a single vehicles table is sufficient)
the concept i just described is called "supertype/subtype" and a web search will reveal lots more information
just remember that the comments go on the supertype
