查询综合练习整理

摘要: 建表 create table Student ( Sno varchar(20) not null primary key, Sname varchar(20) not null, Ssex varchar(20) not null, Sbirthday datetime, Class varchar(20) ) crea... 阅读全文
posted @ 2016-03-17 23:39 宁静致远-zw 阅读(318) 评论(0) 推荐(0)

简单查询笔记

摘要: 1。普通查询 select* from Info# 查询所有内容 select Code, Name from Info #查询某几列 2。条件查询 select*from Info where code='p001';#条件查询 select*from Info where Nation='n001' and Sex=true;#条件之间并的关系 select*from Info wher... 阅读全文
posted @ 2016-03-17 23:31 宁静致远-zw 阅读(310) 评论(0) 推荐(0)

高级查询笔记

摘要: 高级查询 1.连接查询(对列的扩展) 第一种形式: select*from info,nation #笛卡尔积 select*from info,nation where info.nation=nation.code #加上筛选条件 select info.code,info.name,sex, nation.name,birthday from info,nation where... 阅读全文
posted @ 2016-03-17 23:29 宁静致远-zw 阅读(155) 评论(0) 推荐(0)

简单查询练习

摘要:   阅读全文
posted @ 2016-03-13 16:45 宁静致远-zw 阅读(141) 评论(0) 推荐(0)

数据库增删改查最简单练习

摘要: create table people ( Code Varchar(50) primary key, Name Varchar (30) not null, Time date, Age int, Nation varchar(50) references Nation2(Code) ); cre 阅读全文
posted @ 2016-03-12 16:52 宁静致远-zw 阅读(513) 评论(0) 推荐(0)

如何创建数据库及表和外键

摘要: 1,在连接下的根目录上点右键,创建数据库 输入数据库名,字符集要设置好,与网页对应起来 点击确定 创建成功2,双击打开数据库 第一个显示的是表 最重要最基础的是表。3,创建表,找到表右键,创建表。 首先要确定列,列名,数据库中不要用中文名来做列名。 再确定数值,类型 bit 布尔型只能存储true 阅读全文
posted @ 2016-03-11 08:39 宁静致远-zw 阅读(9787) 评论(0) 推荐(0)

运行问题,如何修改APACHE的监听端口和密码

摘要: 1.当wamp的图标为绿色时,正常运行; 2.图标为黄色是,检查Mysql和Apache端口(两个中的一个会出错)。 3.图标为红色是,端口被占用。 监听端口: 1.在界面中选apache,弹出隐藏菜单选项,打开配置文件httpd.conf; 2.找到Listen 80和 ServerName lo 阅读全文
posted @ 2016-03-10 15:55 宁静致远-zw 阅读(565) 评论(0) 推荐(0)

html

摘要: 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www. 阅读全文
posted @ 2016-02-18 23:09 宁静致远-zw 阅读(155) 评论(0) 推荐(0)

作业

摘要: package come.hanqi;public class MyThread extends Thread{ public void run() { for (int i = 0; i < 5; i++)... 阅读全文
posted @ 2016-01-25 21:37 宁静致远-zw 阅读(203) 评论(0) 推荐(0)

第三题

摘要: 1 HashMapEmp=new HashMap();//创建map集合,创建emp对象 2 3 Emp.put("001", "张"); 4 5 Emp.put("002", "王"); 6 Emp.put("0... 阅读全文
posted @ 2016-01-22 23:39 宁静致远-zw 阅读(163) 评论(0) 推荐(0)