H
H
Holy Saint2018-10-03 17:52:35
MySQL
Holy Saint, 2018-10-03 17:52:35

INSERT two rules in one?

Hello. Please help me with a request. There is a query like:

Insert into droplist (mobId, itemid, chance, min, max,category) select id, 6673, 17000, 1, 1, 1 from npc where level >=76 and type='L2Monster';

And everything would not be anything, but he adds on two conditions, and I needed one thing. That is, the type='L2Monster' field should be taken and compared with level >=76 or vice versa, and only then the result should be entered into the droplist table

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question