流水不腐,户枢不蠹

swap, not lost!

统计

最新评论

#

Lesson 19 Tired and Thirsty.

text:


Mum:     What's matter,children?

Girl:    We are tired...

Boy:     ... and thirsty,mum.

Mum:     Sit dowm here.

            Are you all right now?

Boy:     No, we aren't.

Mum:     Look. There's an ice cream man.

              Two ice creams please.

              Here you are, children.

Children:  Thanks,mum.

Girl:      These ice creams are nice.

Mum:       Are you all right now?

Children:  Yes, we are. Thank you.

posted @ 2006-06-28 10:34 my whole world! 阅读(98) | 评论 (0)编辑 收藏

Lesson 17 How do you do?

text:

MR.JACKSON:    Come and meet our employees, Mr.Richards.
MR.RICHARDS:   Thank you,Mr.Jackson.

MR.JACKSON:    This is Nicola  Grey, and this is  Claire  Taylor.
MR.RICHARDS:   How do you do?
              
               Those women are very hard-working.
               What are their jobs?

MR.JACKSON:    They are keyboard operators.
              
               This is Michwal Baker and this is Jeremy Short.
MR.RICHARDS:   How do you do?

               They aren't very busy.
               What are their jobs?

MR.JACKSON:    They are sales reps.
               They are very lazy.
              
MR.RICHARDS:   Who is this young man?

MR.JACKSON:    This is Jim.
               He's our office assistant.

posted @ 2006-06-28 10:25 my whole world! 阅读(124) | 评论 (0)编辑 收藏

一转身便是永远,一挥手便作别一个时代[转]

    
    [转]今夜我本该是欢笑庆祝,我这个超级意粉所钟爱的球队赢得了今天的比赛,并且还很精彩,但是这是在淘汰了一贯激情四射,斗志昂扬的捷克,在让我的内德维德永远离开世界杯和国家队的前提之下。比赛很精彩,双方都属于正常发挥,内德维德的金发满场飞扬,从对方的禁区到本方的禁区,积极进攻,全力防守,只要有球几乎都能看到他的身影。我妈妈不懂球,但是她也对这个满场飞的金发印象深刻,但是也很疑惑:“他是前锋还是后卫?”
    场上他真的可以称为HERO,场下更是应该得到大家的尊敬,不光是内德维德,更是整个捷克队。
在最后结束的时候,内德维德的半跪在地,卡纳瓦罗的伸手拥抱,布丰的亲吻,甚至是捷克教练在鸣哨后冲向意大利的教练席向里皮表示祝贺都让我感动的想要流泪,这才是体育,这才是我们所倡导的体育精神吧,对于在场地里在摄影机的镜头前大暴粗口的教练,在场地上毫无绅士风度的运动员,我们大家都应该鄙视他们,不管是哪一支球队,都该是遵循的是体育精神。跟前几天相比,今天的我是快乐的,我欣赏了一场很激烈但很快乐很公平的比赛, I ENJOYED THE MATCH
今夜,意大利赢得了比赛,但,内德维德赢得了尊敬!


~~~~~~~~~~~~~~~~~~~~~~~~~~
    

    昨晚看了本人的第一场世界杯比赛--意大利对捷克。球盲一个,却因此而辗转反侧不能入睡,生平第一回。
    因为深爱过,我们无法成为仇人;也因为曾经深爱过,我们只能成为最熟悉的陌生人。

posted @ 2006-06-23 14:58 my whole world! 阅读(133) | 评论 (0)编辑 收藏

c/c++几个入门知识点

1.在申明区里,下面两种头文件引用方式的区别:
  #include <iostream.h>:  只在编译器提供的头文件的目录下寻找该文件。
  #inclued "iostream.h":    先在所要编译的程序的目录下寻找该文件,未找到时再去编译器提供的头文件的目录下寻找该文件。

2.程序头中void main()与int main()区别:
  void main():程序结束时,无需加return 0; 返回语句即可返回。
  int main(): 程序结束时,需加return 0; 返回语句才能返回。

3.看变量的定义类型的小诀窍:
  c/c++中由于有指针数组的引入,很多变量定义会容易混淆,如 *int a,和 int *a ,这里有个小诀窍。
  记住下面的表达式,...(8)(6)(4)(2)a(1)(3)(5)(7)...
  然后记住规则:看变量,先看右边紧邻的定义,然后看左边紧邻,然后再看右边第二邻的,再看左边第二邻。。。。这样是否很简单了?呵呵!

4.布尔类型:
  false   代表   0
  true    代表   1
 

posted @ 2006-06-19 14:01 my whole world! 阅读(201) | 评论 (0)编辑 收藏

REDHAT安装问题

    前几天在我的本本上安装REDHAT7.1,这还是赵赵大学时买的,我一直都没用过。现在最新版本到10了吧,大家不要鄙视我,我是个LINUX盲,呵呵!
    说下我遇到的情况吧。我是台IBM T23,装的是2000 Professional。安装REDHAT之前,我按照说明书分出了一个linux native区和一个linux swap区。安装基本采用默认选择,基本没有遇到什么问题。对硬件配置后,我能进入Linux系统了。但问题是,进入后,屏幕总是过几秒就闪动,黑屏时无法识别键盘,输入的用户名和密码都没接收到。系统相当不稳定。
    我现在还只是刚开始学习,在熟悉一些基本命令,没有用到其他功能。
    大家能否帮我分析一下这个问题啊?谢谢大家了!

posted @ 2006-06-19 13:15 my whole world! 阅读(165) | 评论 (0)编辑 收藏

introduce myself

last week, i had an interview about software testing. it is a foreign company, so oral examination is necessary.

in order to better show me, i wrote these words:

My name is xiefen, i am twenty-six. I am from hubei Province. I spent four years in wuhan studying. In 2003, I graduated from wuhan Institute of Technology. Major in Measurement & Instrument Engineering.
In the past three years, I act as two different types of work. One is about business,another is software test.
My first work is about business. I worked in Guangzhou optics and optoelectronics manufacturers association. in brief GZOEMA.
(I organized all kinds of activities, and developed the members with my partners. I built the english website myself. That was a work hard time and a happniess time. Through those days, I had ability in communicating and cooperating with others.)
From Dec,2004, I work in jiesai science and technology com. As a software testing engineer, I am responisble for testing and Software Quality Assurance, (including of module test, integration test, system test. In the process, we adopt test and convoking experts conference to ensure software quality. To this day, I become a good primary testing engineer, and i will keep on with studing test technology through Internet,books and others.)
In my opinion, to do a job is to soulder a burden and to face all kinds of challenges. It calls for bravery and ability. When everything is completed, i have a strong feeling of accomplishment and satisfaction, which is my career strenghth.
I except to devote all myself into your business with my precise working attitude and aggressive spirit.
 

posted @ 2006-06-19 11:58 my whole world! 阅读(406) | 评论 (0)编辑 收藏

SQL语句入门--单表查询二

4.2.5 组合条件的查询
    (1)在【命令编辑区】输入“select empno,ename,job from scott.emp where job>=’CLERK’ and sal<=2000”,然后单击【执行】按钮,得到逻辑与组合查询的结果。
     (2)在【命令编辑区】输入“select empno,ename,job from scott.emp where job>=’CLERK’ or sal<=2000”,然后单击【执行】按钮,得到逻辑或组合查询的结果。
     (3)在【命令编辑区】输入“select empno,ename,job from scott.emp where not job=’CLERK’”,然后单击【执行】按钮,得到逻辑非组合查询的结果。“not job=’CLERK’”等价于“job<>’CLERK’”。 组合条件中使用的逻辑比较符如表4.2所示。

表4.2 逻辑比较符

名称实例
and(与)select * from scott.emp where job=’MANAGER’ and sal<>2000;
or (或)select * from scott.emp where job!=’MANAGER’ or sal<>2000;
not(非)select * from scott.emp where not job>=’MANAGER’;


4.2.6 排序查询
    在【命令编辑区】输入“select empno,ename,job from scott.emp where job<=’CLERK’ order by job asc,sal desc”,然后单击【执行】按钮,得到排序查询的结果。
   order by 可以指定查询结果如何排序,形式为字段名 排序关键词;asc代表升序排列,desc代表降序排列,多个排序字段之间通过逗号分割。若有where查询条件,order by要放在where语句后面。

4.2.7 分组查询
    分组查询是指将查询结果按照字段分组。
    (1)在【命令编辑区】输入“select empno,ename,job,sal from scott.emp group by job,empno,ename,sal having sal<=2000”,然后单击【执行】按钮,得到分组查询的结果。 

    (2)在【命令编辑区】输入“select empno,ename,job,sal from scott.emp where sal<=2000 group by job,empno,ename,sal”,然后单击【执行】按钮,得到分组查询的结果。
     where检查每条记录是否符合条件,having是检查分组后的各组是否满足条件。having语句只能配合group by语句使用,没有group by时不能使用having,但可以使用where。

4.2.8 字段运算查询
    可以利用几种基本的算术运算符来查询数据。
    常见的+(加)、-(减)、*(乘)、/(除)4种算术运算都可以用来查询数据。
    在【命令编辑区】输入“select empno,ename,sal,mgr,sal+mgr from scott.emp”,然后单击【执行】按钮,得到结果。
    利用算术运算符仅仅适合多个数值型字段或字段与数字之间的运算。
4.2.9 变换查询显示
    在【命令编辑区】输入“select empno 编号,ename 姓名,job 工作,sal 薪水 from scott.emp”,然后单击【执行】按钮,得到结果,可以将默认的字段名以设定的名称显示。
  
    以上我们学习了对单个数据表的查询语句。将上面这些基本的实例经过组合,就可以完成基本的日常数据查询任务,接下来进一步学习多表查询。



posted @ 2006-06-09 11:46 my whole world! 阅读(263) | 评论 (0)编辑 收藏

SQL语句入门--单表查询一

SQL语言按照功能可以分为4大类。
    数据查询语言DQL:查询数据。
    数据定义语言DDL:建立、删除和修改数据对象。
    数据操纵语言DML:完成数据操作的命令,包括查询。
    数据控制语言DCL:控制对数据库的访问,服务器的关闭、启动等

单表查询是相对多表查询而言的,指从一个数据表中查询数据。
4.2.1 查询所有的记录
    在【命令编辑区】执行输入“select * from scott.emp”,然后单击【执行】按钮,得到emp数据表所有记录。
 select * from 数据表,这里的“*”代表数据表中所有的字段。

4.2.2 查询所有记录的某些字段
    在【命令编辑区】输入“select empno,ename,job from scott.emp”,然后单击【执行】按钮,将显示emp数据表的empno、ename和job字段。
    select 字段名1, 字段名2,…… from 数据表,将显示某些特定的字段,注意这里的字段名之间的逗号是英文状态下的逗号。

4.2.3 查询某些字段不同记录
    在查询到的job字段中,可以发现有相同的数据,为了查询有多少种不同的job,在【命令编辑区】输入“select distinct job from scott.emp”,然后单击【执行】按钮,出现结果。
   select distinct 字段名 from 数据表,这里的“distinct”保留字指在显示时去除相同的记录,与之对应的是“all”将保留相同的记录,默认为“all”。

4.2.4 单条件的查询
    (1)在【命令编辑区】输入“select empno,ename,job from scott.emp where job=’MANAGER’”,然后单击【执行】按钮,出现的字符型字段条件查询的结果,查询的是job为MANAGER的记录。
    (2)在【命令编辑区】输入“select empno,ename,sal from scott.emp where sal<=2500”,然后单击【执行】按钮,出现的数字型字段条件查询的结果,查询的是满足sal小于等于2500的记录。
    where可以指定查询条件,如果是指定字符型字段查询条件,形式为字段名 运算符 '字符串';如果是指定数字型字段查询条件,形式为字段名 运算符 '字符串'。 单条件查询使用的比较运算符如下表所示。

表4.1 比较运算符

名称实例
=(等于)select * from scott.emp where job=’MANAGER’;
select * from scott.emp where sal=1100;
!= (不等于)select * from scott.emp where job!=’MANAGER’;
select * from scott.emp where sal!=1100;
^=(不等于)select * from scott.emp where job^=’MANAGER’;
select * from scott.emp where sal^=1100;
<>(不等于)select * from scott.emp where job<>’MANAGER’;
select * from scott.emp where sal<>1100;
<(小于)select * from scott.emp where sal<2000;
select * from scott.emp where job<’MANAGER’;
>(大于)select * from scott.emp where sal>2000;
select * from scott.emp where job>’MANAGER’;
<=(小于等于)select * from scott.emp where sal<=2000;
select * from scott.emp where job<=’MANAGER’;
>=(大于等于)select * from scott.emp where sal>=2000;
select * from scott.emp where job>=’MANAGER’;
in(列表)select * from scott.emp where sal in (2000,1000,3000);
select * from scott.emp where job in (’MANAGER’,’CLERK’);
not in(不在列表)select * from scott.emp where sal not in (2000,1000,3000);
select * from scott.emp where job not in (’MANAGER’,’CLERK’);
between(介于之间)select * from scott.emp where sal between 2000 and 3000;
select * from scott.emp where job between ’MANAGER’ and ’CLERK’;
not between (不介于之间)select * from scott.emp where sal not between 2000 and 3000;
select * from scott.emp where job not between ’MANAGER’ and ’CLERK’;
like(模式匹配)select * from scott.emp where job like ’M%’;
select * from scott.emp where job like ’M__’;
not like (模式不匹配)select * from scott.emp where job not like ’M%’;
select * from scott.emp where job not like ’M__’;
Is null (是否为空)select * from scott.emp where sal is null;
select * from scott.emp where job is null;
is not null(是否为空)select * from scott.emp where sal is not null;
select * from scott.emp where job is not null;
     like和not like适合字符型字段的查询,%代表任意长度的字符串,_下划线代表一个任意的字符。like ‘m%’ 代表m开头的任意长度的字符串,like ‘m__’ 代表m开头的长度为3的字符串。


posted @ 2006-06-09 11:41 my whole world! 阅读(520) | 评论 (0)编辑 收藏

Lesson 15 Your passports,please.

Text:

Customs officer:    Are you Swedish?
Girls:              No,we are not.
                    We are Danish.
Customs officer:    Are your friends Danish,too?
Girls:              No,they aren't.  They are Norwegian.
Customs officer:    Your passport,please.
Girls:              Here they are.
Customs officer:    Are these your cases?
Girls:              No,they aren't.
                    Our cases are brown. Here they are.
Customs officer:    Are you tourists?
Girls:              Yes, we are.
Customs officer:    Are your friends tourists,too?
Girls:              Yes, they are.
Customs officer:    That's fine.
Girls:              Thank you very much.


Note:
1. about country:
   China   中国               England      英国            America  U.S.A    美国          
   Germany  德国              Japan        日本            India             印度
   Korea    韩国,朝鲜        Singapore    新加坡          Vietnam           越南
   Thailand 泰国              Egypt        埃及            Russia            俄罗斯
   Danmark   丹麦             Sweden       瑞典            Norway            挪威
   France    法国             Italy        意大利          Spain             西班牙
   Switzerland    瑞士

2.Immgration control and customs, 通过移民处海关经常问的问题有:
Q:     Are you here on holiday?
  A:   yes, i am. /   No,i've come to learn English.   /  No.I'm here on business.  /  No, this is a business trip.    
Q:     Is your family going to join you in the UK?
  A:   I'm not sure. My wife may come over next month.
Q:     How long are you staying here?
  A:   I'll be here for a month or so.  /   Only a coulpe of days. I want to see all the sights of London.  /   About three years. I'm doing a BA degree.
Q:     Which country do you come from?
  A:   I'm from China.  /  I'm Chinese.
Q:     Where have you just come from?
  A:   I've just spent a few days in Germany.
Q:     Have you got anything to declare?  /   Have you anything dutiable?
  A:   No,I've nothing to declare.  /   I've only got clothes and things like that.
Q:     Would you mind opening this suitcase?   /  Would you mind showing me your camera,please?
  A:   No, of course not.

posted @ 2006-06-09 11:30 my whole world! 阅读(157) | 评论 (0)编辑 收藏

关系型数据库系统简介

原文网址:http://www.ddvip.com/database/oracle/index1/1.htm
绿色字体为我学习过程中添加的注释。


1.1.1 什么是关系型数据
    关系型数据是以关系数学模型来表示的数据。关系数学模型中以二维表的形式来描述数据,如表1.1和表1.2所示。




1.1.2 什么是关系型数据库
    1. 什么是主码(主键)
    能够唯一表示数据表中的每个记录的【字段】或者【字段】的组合就称为主码。
    2. 什么是外码(外键)
    表1.2的【编号】字段和表1.1的【导师编号】字段是对应的。表1.2中的【编号】字段是表1.2的主码。表1.2中的【编号】字段又可以称为是表1.1的外码。

数据模型三要素:数据结构--描述静态特性
                数据操作--描述动态特性
                完整性约束
数据结构:包括两类,一类是与数据类型、内容、性质相关的对象,如关系模型中的域、属性、关系等;
          一类是与数据之间的联系相关的对象。如
关系模型中的联系。
数据操作:  检索、插入、删除、修改等。已相关语言实现。
完整性约束: 约束条件,是一组数据完整性规则的集合。保证数据的正确性、有效性、一致性。

关系数据模型:由若干个关系模式组成,
关系模式由关系、关系上定义的操作和对关系的完整性规则组成。
              关系模型的逻辑结构是二维表,如表1.1,表名,表项名为属性,表内容为关系;行称为元组,各元素称为分量。

1.1.3 什么是关系型数据库系统
    一个完整的关系型数据库系统包含5层结构,如图1.1所示。


1. 硬件
    硬件指安装数据库系统的计算机,包括两种。
    服务器
    客户机
    2. 操作系统
    操作系统指安装数据库系统的计算机采用的操作系统。
    3. 关系型数据库管理系统、数据库
    关系型数据库是存储在计算机上的、可共享的、有组织的关系型数据的集合。关系型数据库管理系统是位于操作系统和关系型数据库应用系统之间的数据库管理软件。
    4. 关系型数据库应用系统
    关系型数据库应用系统指为满足用户需求,采用各种应用开发工具(如VB、PB和Delphi等)和开发技术开发的数据库应用软件。
    5. 用户
    用户指与数据库系统打交道的人员,包括如下3类人员。
    最终用户
    数据库应用系统开发员
    数据库管理员

数据库系统的三级模式结构和二级映像:
外模式: 子模式、用户模式。一个数据库可有多个外模式,一个外模式可以对应一个用户或一个用户组。
外模式/概念模式映像:DBMS在此确定应该从何处读取概念模式中的相应记录。
概念模式:模式、逻辑模式。所有用户的公共数据视图。
概念模式/内模式映像:DBMS在此确定从哪些物理文件采取何种存取方法,读入哪些物理记录。
内模式: 物理模式。


1.1.4 什么是关系型数据库管理系统   (DBMS)
    1. 数据定义语言及翻译程序DDL
    2. 数据操纵语言及编译(解释)程序DML
    3. 数据库管理程序



1.2.1 桌面关系型数据库系统
1.2.2 网络关系型数据库系统
    在网络关系型数据库系统中,有3个特别重要的概念。
    1. 数据库服务器
    逻辑上的服务器指的是安装在计算机上提供一些基于网络环境的应用的软件。
    2. 管理客户机
    逻辑上的管理客户机是指对数据库进行管理的软件。
    3. 端口
    为了区分这些不同的逻辑服务器,使用了称为端口的概念。


posted @ 2006-06-08 11:45 my whole world! 阅读(329) | 评论 (0)编辑 收藏

仅列出标题
共3页: 1 2 3