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 not here example made:

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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -