I want to define the value of columnA in tableA to have the count of all rows in tableB where tableB.columnB
I have two tables:
articles table
columns: articleId,numComments
comments table
columns: articleId,content
I want numComments column in table "articles" to contain a count of all rows in table comments where articles.articleId=comments.articleId
Do I need to set any one of them as "innodb"?