so i have a table with this data, but when i query "select * from assetprofile WHERE description1='(1) GENSET\FOR ATM' ", it shows nothing . any help?
Asked
Active
Viewed 43 times
0
-
Your question is answered [here](https://stackoverflow.com/a/28310845/4274040) – Christian Abila Aug 12 '22 at 12:37
3 Answers
0
Try use IN operator:
SELECT * from assetprofile WHERE description1 IN ('(1) GENSET\FOR ATM')

Nickname_used
- 430
- 3
- 18
0
The sample data does not have a space between the parentheses and GET, but your query does.

Michael
- 519
- 1
- 4
- 15
0
Try to escape the string using QUOTE
function:
SELECT * FROM assetprofile WHERE description1 = QUOTE('(1) GENSET\FOR ATM');

Ananth MK
- 392
- 1
- 5