Answer the question
In order to leave comments, you need to log in
What is the best way to implement value insertion in MySQL?
The point is this.
There is a table of two columns:
url and path
url I fill with my hands, but for path I need the ability to specify an arbitrary value.
What is the most convenient way to do this? The dumbest thing that comes to mind is to take everything from the config. And then write noodles:
If URL1 is such and such, then Path1
If URL2 is such and such, then Path2
But this is somehow stupid and difficult to edit. There is an idea to write some kind of trigger, but the problem is that it is necessary for the user to easily change the Path value for certain URLs. As I understand it, in the case of triggers, you have to climb into the database ...
Answer the question
In order to leave comments, you need to log in
What's the question? Take any language and write a mini-admin to edit the values of this table.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question