views:

32

answers:

1

How to write a query that can find me all item_number start with a certain value ?

For instance there are item_numbers like these :

123_abc
123_xyz
ierireire
321_add
999_pop

My current query looks like this :

"select from "+PayPal_Message.class.getName()+" where item_number == '"+Item_Number+"' order by item_number desc"

What's a query look like that can return all item_numbers start with "123_" ?

+6  A: 
baloo
I found it's for Python, I'm using Java, how does it work ?
Frank