String selectQuery = " select * from BarUpdate where BAR_ADDRESS like %'" +s_area+"'% ORDER BY BAR_NAME";
如果给定地址在我的应用程序中存储地址的任何子字符串中匹配,我想获取整个地址值
我在%和orderby中都出错了
答案 0 :(得分:0)
试试这个
String selectQuery = " select * from BarUpdate where BAR_ADDRESS like '% "+ s_area +" %' ORDER BY" + BAR_NAME;