Janis Peksa

Janis Peksa

  • NA
  • 152
  • 49.9k

How to insert brackets between text

Feb 16 2011 7:44 AM

Hellow, I have problem like this. I have SQL query where with button press need to add brackets.
Sample of SQL: SELECT something FROM sometable WHERE item1 OR item2 XOR item3 AND item4
Whan I press the botton it's adds brackets that SQL is right.
Like this: SELECT something FROM sometable WHERE (((item1 OR item2) XOR item3) AND item4)
Please help me.

Answers (16)