Android SqliteDatabase 奇怪问题
//这里用拼接字符串写到where语句中会报错,最好用?
mContext.getContentResolver().update(DatabaseProvider.CONTENT_STOCKS_URI, values,
STOCK_CODE + "=?", new String[] {
stockCode
});
mContext.getContentResolver().update(DatabaseProvider.CONTENT_STOCKS_URI, values,
STOCK_CODE + "=?", new String[] {
stockCode
});
写成:
mContext.getContentResolver().update(DatabaseProvider.CONTENT_STOCKS_URI, values,
STOCK_CODE + "=sh123456", null);
STOCK_CODE + "=sh123456", null);
会报列sh123456找不到.
无语了
版权所有: 博客园.Answer 转载请注明出处。www.cnblogs.com/xzy2046/