花花世界花花姐  

2016年5月25日

摘要: public class class3 { public static void main(String[] args) { // TODO Auto-generated method stub try { //1.链接数据库 Class.forName ("com.microsoft.sqlser 阅读全文
posted @ 2016-05-25 18:20 花花世界花花姐 阅读(166) 评论(0) 推荐(0) 编辑

2016年5月24日

摘要: 二、增加 public static void main(String[] args) { //TODO Auto-generated method stub //4.用户输入需要添加的项目 Scanner sc = new Scanner(System.in); System.out.printl 阅读全文
posted @ 2016-05-24 19:15 花花世界花花姐 阅读(257) 评论(0) 推荐(0) 编辑
 
摘要: 一.查找 public class class1 { public static void main(String[] args) { // TODO Auto-generated method stub try { //1.找到数据库,并且链接上 Class.forName("com.micros 阅读全文
posted @ 2016-05-24 19:09 花花世界花花姐 阅读(334) 评论(0) 推荐(0) 编辑

2016年5月18日

摘要: 常用SQL查询语句 一、简单查询语句 1. 查看表结构 SQL>DESC emp; 2. 查询所有列 SQL>SELECT * FROM emp; 3. 查询指定列 SQL>SELECT empmo, ename, mgr FROM emp; SQL>SELECT DISTINCT mgr FROM 阅读全文
posted @ 2016-05-18 19:28 花花世界花花姐 阅读(161) 评论(0) 推荐(0) 编辑

2016年5月13日

摘要: import java.util.Scanner; public class work { public static void main(String[] args) { // TODO Auto-generated method stub int b=(int)(Math.random()*15 阅读全文
posted @ 2016-05-13 16:10 花花世界花花姐 阅读(410) 评论(0) 推荐(0) 编辑