摘要: 表(一)Student Sno Sname Ssex Sbirthday class 108 曾华 男 1977-09-01 95033 105 匡明 男 1975-10-02 95031 107 王丽 女 1976-01-23 95033 101 李军 男 1976-02-20 95033 109 阅读全文
posted @ 2016-04-22 13:39 王策 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 高级查询 1连接查询 对列的拓展select * from info,nation 这样得出的结果称为笛卡尔积 效率低 select * from info,nation where info.nation=nation.code join on 链接select * from info jion 阅读全文
posted @ 2016-04-19 09:28 王策 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 测试1create table ceshi1{ Uid varchar(50) primary key, pwd varchar(50), Name varchar(50)}写查询语句需要注意:1,创建表最后一行后面不加逗号2 如果有多条语句一起执行,要在语句之间加分号3 写代码符号都是英文的、 关 阅读全文
posted @ 2016-04-18 15:38 王策 阅读(146) 评论(0) 推荐(0) 编辑
摘要: JavaScript简介 JavaScript是个脚本语言,主要有宿主文件,他的宿主文件是htlm文件。 JavaScript在html中的位置有三块;1,head里面2,body里面3,</html>之后,为了保险起见一般写在</html>之后 格式: <script language="java 阅读全文
posted @ 2016-03-25 15:32 王策 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Css样式表 内联样式表:<p style="font-size:14px;">内联样式表</p> 内嵌样式表:必须写在head标签里面。 <style type="text/css"> p //格式对p标签起作用 { 样式; } </style> 外部样式表: 新建一个CSS文件,用来放置样式表。 阅读全文
posted @ 2016-03-23 08:24 王策 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 表单 <form> 文本输入 文本框:<input type="text" value="123" /><br /> 密码框:<input type="password" /><br /> 文本域:<textarea cols="35" rows="5"> </textarea><br /> 按钮 阅读全文
posted @ 2016-03-20 16:18 王策 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 冒泡排序 冒泡排序是由从大到小的顺序排列 例如//Console.Write("请输入你们班的人数");             //int a = int.Parse(Console.ReadLine());             //int[] shuzu = new int[a];      阅读全文
posted @ 2016-03-13 15:36 王策 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 随机数类random Random ran=new random(); 初始化的意思 例如 for (; ; ) { string a = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"; Random ran = n 阅读全文
posted @ 2016-03-12 16:16 王策 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 在不符合条件的时候用for再循环 例如 //for (; ; ) //{ // Console.Write("请输入一个年份"); // int n = int.Parse(Console.ReadLine()); // if (n <= 9999 && n>= 1) // { // for (; 阅读全文
posted @ 2016-03-11 19:21 王策 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 循环语句 四要素:初始条件;循环条件;状态改变;循环体 循环语句的格式 For(int i=0;i<=a;i++) { 循环体 } 例如//Console.Write("请输入一个数"); //int a = int.Parse(Console.ReadLine()); //int sun = 1; 阅读全文
posted @ 2016-03-10 21:30 王策 阅读(134) 评论(0) 推荐(0) 编辑