刘68

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2016年12月6日

摘要: create table Student( Sno varchar(20) primary key, Sname varchar(20) not null, Ssex varchar(20) not null, Sbirthday datetime not null, Class varchar(2 阅读全文
posted @ 2016-12-06 15:51 刘68 阅读(188) 评论(0) 推荐(0) 编辑

摘要: 一、数学函数 数学函数主要用于处理数字,包括整型、浮点数等。 ABS(x) 返回x的绝对值 SELECT ABS(-1) -- 返回1 CEIL(x),CEILING(x) 返回大于或等于x的最小整数 SELECT CEIL(1.5) -- 返回2 FLOOR(x) 返回小于或等于x的最大整数 SE 阅读全文
posted @ 2016-12-06 15:47 刘68 阅读(4367) 评论(0) 推荐(0) 编辑

2016年12月5日

摘要: 高级查询 1.连接查询,对结果集列的扩展select * from info select * from info,nation #形成笛卡尔积select * from info,nation where info.nation=nation.codeselect info.code,info.n 阅读全文
posted @ 2016-12-05 15:15 刘68 阅读(98) 评论(0) 推荐(0) 编辑

摘要: 简单查询 1.最简单查询(查所有数据)select * from 表名; 注:* 代表所有列select * from info 2.查询指定列select code,name from info 3.修改结果集的列名select code as '代号',name as '姓名' from inf 阅读全文
posted @ 2016-12-05 15:14 刘68 阅读(558) 评论(0) 推荐(0) 编辑

2016年12月1日

摘要: use 数据库名show tables 调用表格select * from 表格名 调用所有内容insert into 表格名 (列名) values (值) 增update 表格名 set 列名=‘值’ where id=值 改ALTER TABLE 表名 DROP COLUMN 列名; 删除列a 阅读全文
posted @ 2016-12-01 15:42 刘68 阅读(105) 评论(0) 推荐(0) 编辑

2016年11月29日

摘要: //随机数生成器Math.random() 日期时间函数(需要用变量调用):var b = new Date(); //获取当前时间b.getTime() //获取时间戳b.getFullYear() //获取年份b.getMonth()+1; //获取月份b.getDate() //获取天b.ge 阅读全文
posted @ 2016-11-29 16:41 刘68 阅读(392) 评论(0) 推荐(0) 编辑

摘要: 一:window:window.shuxing;属性(值或者子对象):opener:打开当前窗口的源窗口,如果当前窗口是首次启动浏览器打开的,则opener是null,可以利用这个属性来关闭源窗口。 方法(函数):window.fangfa(); 事件(事先设置好的程序,被触发): 1.window 阅读全文
posted @ 2016-11-29 16:29 刘68 阅读(149) 评论(0) 推荐(0) 编辑

摘要: int 整型float 小数double 小数varchar(20) 字符串bit 布尔型数据datetime 日期时间类型text 长文本 money 存货币image 存二进制数据 三大范式:1.第一范式:保证列的原子性,相对于功能 山东省淄博市张店区 山东省 淄博市 张店区 2.第二范式:每一 阅读全文
posted @ 2016-11-29 16:17 刘68 阅读(376) 评论(0) 推荐(0) 编辑

2016年11月7日

摘要: 今天进行了系统的网页布局练习题。 阅读全文
posted @ 2016-11-07 15:32 刘68 阅读(132) 评论(0) 推荐(0) 编辑

摘要: 今天进行了for循环语句的复习,并对for循环语句进行了实例练习,并进行了数组的学习。 阅读全文
posted @ 2016-11-07 15:31 刘68 阅读(151) 评论(0) 推荐(0) 编辑