android - What is the best way to create SQL multiple Tables? -
i develop app store table todo tasks - topics , sub-topics. thought of 2 ways action, best way recommended. way number 1 : add table - column sub-topics names, , when want show specific topic loop query him. way number 2 : create 2 tables handle topics , names , other 1 handle sub-topics data.

if going have 1 tag on each row, first method fine.
if going allow multiple tags on row, use junction table, todo_tags table in second approach. junction table right method storing lists of objects (tags) attached list.
Comments
Post a Comment