0

I have such json array in MySql

[{  "to": "0xACA7A6819ebc5135D1Be4D9952C1219ad6a3182f", 
  "from": "0xF6b023e576E86067e9604ee31215873E4495C06f"}] 

I need simple action, just get all array!

 // This not work
 SELECT deposit FROM users WHERE wallet = 0X...
Marco
  • 56,740
  • 14
  • 129
  • 152

1 Answers1

0

Try using 'like' keyword.

ex :

"SELECT deposit FROM users WHERE wallet like '%0xACA7A6819ebc5135D1Be4D9952C1219ad6a3182f%'; 

statement above should able to select all the record where wallet column contain string above.

Note : add the percent sign indicate it's a wildcard search

Hugo
  • 11
  • 3