L
L
lavezzi12018-10-28 08:20:16
MySQL
lavezzi1, 2018-10-28 08:20:16

Node.js + MySQL how to name tables, columns?

I write backend on node, database on mysql. To make everything look in the same style, I use camelCase on the front / backend / database. is this correct for db? It seems that snake_case is accepted in mysql. How to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Popov, 2018-10-28
@be_a_dancer

There is no need to use camelCase or snake_case. But since mysql converts all names to lowercase (case insensitive), all capital letters in the base are lost. So it's better - snake_case - it will be clear.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question