2017年6月24日

Spring 与hibernate 整合,测试数据连接

摘要: package com.atguigu.spring.hibernate.entities; public class Account { private Integer id; private String username; private Integer balance; public Integer getId() { return id; } public vo... 阅读全文

posted @ 2017-06-24 14:30 社会你锋哥 阅读(109) 评论(0) 推荐(0) 编辑

2017年6月14日

http://blog.csdn.net/basycia/article/details/52205916

摘要: 内连接,外链接(左连接、右连接、全连接),交叉连接大总结 阅读全文

posted @ 2017-06-14 20:57 社会你锋哥 阅读(99) 评论(0) 推荐(0) 编辑

2017年5月18日

MySQL数据库基础知识002

摘要: 一、My yS SQ QL L 支 持 的 数 据 类 1、对于整型数据,MySQL 还支持在类型名称后面的小括号内指定显示宽度,例如 int(5)表示当数值宽度小于 5 位的时候在数字前面填满宽度,如果不显示指定宽度则默认为 int(11)。一般配合 zerofill 使用,顾名思义,zerofill 就是用“0”填充的意思,也就是在数字位数不够的空间用字符“0”填满。 create tabl... 阅读全文

posted @ 2017-05-18 21:40 社会你锋哥 阅读(143) 评论(0) 推荐(0) 编辑

2017年5月17日

数据库基础知识001

摘要: 1、SQL分类 (1)DDL(Data Definition Language)语句:数据定义语言,这些语句定义了不同的数据段、数据库、表、列、索引等数据库对象的定义。常用关键字:create、drop、alter等。 (2)DML(Data Manipulation Language)语句:数据库 阅读全文

posted @ 2017-05-17 17:37 社会你锋哥 阅读(353) 评论(0) 推荐(0) 编辑

2017年5月11日

数组排序

摘要: package course; public class InsertSort { public static void main(String[] args) { int[] array=new int[]{20,40,90,30,80,70,50}; int tmp; int j; for(int i=1;i=0&&array[j]>tmp;j--){ array[j+1]=a... 阅读全文

posted @ 2017-05-11 12:35 社会你锋哥 阅读(59) 评论(0) 推荐(0) 编辑

2017年5月10日

输出杨辉三角

摘要: package com.mingrisoft; public class YanghuiTriangle { public static void main(String[] args) { int triangle[][]=new int[8][]; // 创建二维数组 for (int i = 阅读全文

posted @ 2017-05-10 20:47 社会你锋哥 阅读(160) 评论(0) 推荐(0) 编辑

双层for循环输出九九乘法表

摘要: package course; public class MultiplicationTable { public static void main(String[] args) { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= i; j++ 阅读全文

posted @ 2017-05-10 20:00 社会你锋哥 阅读(587) 评论(0) 推荐(0) 编辑

判断成绩情况

摘要: package course; public class Getifelse { public static void main(String[] args) { int math=95; int english=56; if(math>60){ System.out.println("数学及格了" 阅读全文

posted @ 2017-05-10 18:06 社会你锋哥 阅读(137) 评论(0) 推荐(0) 编辑

2017年5月7日

判断是否为闰年

摘要: package course; import java.util.Scanner; public class LeapYear { public static void main(String[] args) { Scanner scan = new Scanner(System.in); Syst 阅读全文

posted @ 2017-05-07 14:05 社会你锋哥 阅读(178) 评论(1) 推荐(0) 编辑

不使用其他变量实现两个变量交换

摘要: package com.mingrisoft; import java.util.Scanner; public class VariableExchange { //声明类 public static void main(String[] args) { //主方法 Scanner scan = new Scanner(System.in... 阅读全文

posted @ 2017-05-07 13:45 社会你锋哥 阅读(229) 评论(0) 推荐(0) 编辑

导航