I have two tables - task(id, name) and method(id, max_run) , which are connected by type many-to-many through the table taskmethod(id, task_id, method_id) .
I need to set the field value for the method.max_run entry that matches the desired name task.name
For example, there are related entries:
task(001, 'MAIN_TASK') taskmethod(1, 001, 005) method(005, 10) I imagine a query like this:
UPDATE method SET max_run = 5 (для записи, для которой task.name = 'MAIN_TASK') These are assumptions, since I understand little in SQL. Thanks for the help.
where task_id in(select id from task where name='MAIN_TASK'). In general, this is a basic level of knowledge of SQL, it turns out in 1 day and then it is used all my life, it makes sense to study it - Mikemethodtable entries associated with thistasktabletaskmethodwill be updated via thetaskmethodtable. Do you really need exactly this? - Akina