摘要:警告:Not targeting the latest versions of Android; compatibility modes apply.Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES javadoc for details. ANDROID SDK 版本是19...
阅读全文
摘要:用SQL语句,删除掉重复项只保留一条在几千条记录里,存在着些相同的记录,如何能用SQL语句,删除掉重复的呢 1、查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断SELECT * FROM people WHERE peopleId IN ( SELECT peopleId FROM ...
阅读全文
摘要:这篇文章主要介绍了mysql中You can’t specify target table for update in FROM clause错误解决方法,需要的朋友可以参考下MySQL中You can't specify target table for update in FROM clause错误的意思是说,不能先select出同一表中的某些值,再update这个表(在同一语句中)。 例如下...
阅读全文
摘要:下午摆弄ProgressDialog,进入就抛错:android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application,让我百思不得其解。我这使用这种方法实现的进度对话框:proDialog = ProgressDialog.show(ge...
阅读全文
摘要:insert or replace:如果不存在就插入,存在就更新insert or ignore:如果不存在就插入,存在就忽略只对UNIQUE约束的字段起作用。举例:建表:CREATE TABLE TEST(id BIGINT, name text, birthday datetime, PRIMARY KEY(id, name));或者CREATE TABLE TEST (id BIGINT, ...
阅读全文