sql or direct file in the database
Today a question arose to me, was creating a table in the database and I came across whether I should do it manually, directly in the database or create this table through queries, creating a page
.sql. What would be better and safer?
I suppose when you say manually, you refer to the command line.
This is just the way you enter the information, there is no better or worse, do what suits you best (usually cl). About security, it should be noted that to perform any script on your database, you need to be authenticated.