2017年11月13日
摘要: left join(左联接) 返回包括左表中的所有记录和右表中联结字段相等的记录 right join(右联接) 返回包括右表中的所有记录和左表中联结字段相等的记录inner join(等值连接) 只返回两个表中联结字段相等的行 举例如下: 表A记录如下:aID aNum1 a200501112 a 阅读全文
posted @ 2017-11-13 19:51 末 阅读(455) 评论(0) 推荐(0) 编辑
摘要: UNION用的比较多union all是直接连接,取到得是所有值,记录可能有重复 union 是取唯一值,记录没有重复 1、UNION 的语法如下: [SQL 语句 1] UNION [SQL 语句 2]2、UNION ALL 的语法如下: [SQL 语句 1] UNION ALL [SQL 语句 阅读全文
posted @ 2017-11-13 19:35 末 阅读(35647) 评论(0) 推荐(4) 编辑
摘要: /** * 把 数字 转换成 人民币表达方式 * 例如(1111)转成 “一千一百一拾一元整” */ public class Test02 { private static final char[] data = { '零', '壹', '贰', '叄', '肆', '伍', '陆', '柒', '捌', '玖' }; private stat... 阅读全文
posted @ 2017-11-13 19:23 末 阅读(1050) 评论(0) 推荐(0) 编辑
摘要: /** * 每隔10秒钟打印一个“Helloworld” */ public class Test03 { public static void main(String[] args) throws InterruptedException { ThreadImp threadImp = new ThreadImp(); Thread thread1... 阅读全文
posted @ 2017-11-13 19:09 末 阅读(899) 评论(0) 推荐(0) 编辑
摘要: /** * 设计4个线程,其中2个对num进行加操作,另两个对num进行减操作 */ public class ThreadTest { private int j; public static void main(String args[]) { ThreadTest tt = new ThreadTest(); Inc inc = tt.... 阅读全文
posted @ 2017-11-13 17:00 末 阅读(530) 评论(0) 推荐(0) 编辑