SQL语法错误排序

时间:2013-12-20 11:06:14

标签: android

String selectQuery = " select * from BarUpdate where BAR_ADDRESS like %'" +s_area+"'% ORDER BY BAR_NAME";

如果给定地址在我的应用程序中存储地址的任何子字符串中匹配,我想获取整个地址值

我在%和orderby中都出错了

1 个答案:

答案 0 :(得分:0)

试试这个

String selectQuery = " select * from BarUpdate where BAR_ADDRESS like '% "+ s_area +" %' ORDER BY" + BAR_NAME;