Is it a best practice to have table_name and record same?
MAthuvathanan Mou.
cowboymathu@REDACTED
Wed Dec 16 13:25:37 CET 2009
Hi all,
I have record with two parameters like
-record(user, {name, password}).
I am using above record for a user table.
I need to create another table country_code with country and code.
Is it all correct to re-use above record for country_code as well or else do
I have to create another record like
-record(country_code, {country, code}).
Or else, should I create a common record with two parmeters like
-record(two_params, {first, second}).
Which one is good practice?
Thanks
--
Mathuvathanan Mou.
More information about the erlang-questions
mailing list