摘要: 来自 W3School 的 SQL 快速参考。可以打印它,以备日常使用。 SQL 语句 语句语法 AND / OR SELECT column_name(s)FROM table_nameWHERE conditionAND|OR condition ALTER TABLE (add column) 阅读全文
posted @ 2016-11-06 19:27 newcaoguo 阅读(224) 评论(0) 推荐(0) 编辑
摘要: JDBC连接MySQL 加载及注册JDBC驱动程序 Class.forName("com.mysql.jdbc.Driver"); Class.forName("com.mysql.jdbc.Driver").newInstance(); JDBC URL 定义驱动程序与数据源之间的连接 标准语法: 阅读全文
posted @ 2016-11-06 18:45 newcaoguo 阅读(728) 评论(0) 推荐(0) 编辑
摘要: private void test() throws IOException { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { int hasWritePermission = checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_S... 阅读全文
posted @ 2016-11-06 16:56 newcaoguo 阅读(740) 评论(0) 推荐(0) 编辑