How to shorten and optimize the query?

Guys, is it possible to reduce this query.
SELECT * FROM `tab`
WHERE `type` = 1 AND `user1` = 100
OR `type` = 1 AND `user2` = 100

Would like to "fix" in a given `type` = 1 order twice not to write after OR.
March 12th 20 at 07:57
2 answers
March 12th 20 at 07:59
Solution
SELECT * FROM `tab` WHERE `type` = 1 AND (`user1` = 100 OR `user2` = 100)
March 12th 20 at 08:01
Solution
SELECT * FROM `tab`
WHERE `type` = 1 AND (`user1` = 100 OR `user2` = 100)

Find more questions by tags MySQL