摘要: 1、数学函数:操作一个数据,返回一个结果 --去上限: ceiling ☆select ceiling(price) from car --去下限:floor ☆select floor(price) from car --ABS 绝对值 --PI(),圆周率,括号里不加任何东西 --round() 阅读全文
posted @ 2016-08-22 08:37 zl大王派我来巡山 阅读(269) 评论(0) 推荐(0) 编辑
摘要: --第一题 查询Student表中的所有记录的Sname、Ssex和Class列。select Sname,Ssex,Class from student --第二题 查询教师所有的单位即不重复的Depart列。select distinct Depart from Teacher --第三题 查询 阅读全文
posted @ 2016-08-22 08:34 zl大王派我来巡山 阅读(851) 评论(0) 推荐(0) 编辑
摘要: 在SQL server中对数据库的操作: 删除表:drop table 表名修改表:alter table 表名 添加列add 列名 列类型alter table 表名 drop column 列名 删除数据库drop database 数据库名 CRUD操作C——create 添加数据 R——re 阅读全文
posted @ 2016-07-31 15:13 zl大王派我来巡山 阅读(815) 评论(3) 推荐(2) 编辑
摘要: 数据库在存储数据的时候使用表格的方式: 列在数据库中称为字段 行在数据库中称为记录 数据类型: 字符数据型:char、varchar等 日期时间数据:datetime等 数值型:int、float、real 货币数据:money 创建数据库:主文件为.mdf,有且只有一个 日志文件.ldf; 次数据 阅读全文
posted @ 2016-07-31 15:06 zl大王派我来巡山 阅读(210) 评论(1) 推荐(2) 编辑
摘要: 首先点击新建查询 如下图所示 创建数据库:create database 数据库名称 使用数据库:use 数据库名称 创建表:create table 表名 ( 代码 ) 输入完成执行时需选中 如果需要多条语句一起执行,则需要在后面+“go” 例如: create database 数据库名称 go 阅读全文
posted @ 2016-07-31 15:05 zl大王派我来巡山 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 一、position:fixed 锁定位置(相对于浏览器的位置),例如有些网站的右下角的弹出窗口。 示例: 二、position:absolute 1.外层没有position:absolute(或relative);那么div相对于浏览器定位,如下图中b(距离浏览器右边框为50像素,距离下边框为2 阅读全文
posted @ 2016-07-14 11:10 zl大王派我来巡山 阅读(173) 评论(4) 推荐(0) 编辑
摘要: <title>海贼王</title></head><style type="text/css">*{ margin:0px auto; padding:0px; font-family:"微软雅黑"}#tuijian{ width:1346px; height:585px; background-r 阅读全文
posted @ 2016-07-14 09:40 zl大王派我来巡山 阅读(303) 评论(4) 推荐(0) 编辑
摘要: <title>无标题文档</title><style>font{ font-weight:700;}</style></head> <body><font size="+3">1.输入你的性别,身高,体重,查看是否符合标准</font><br />性别(男/女):<input id="sex" ty 阅读全文
posted @ 2016-07-13 08:34 zl大王派我来巡山 阅读(173) 评论(0) 推荐(0) 编辑
摘要: <style type="text/css">.a{ width:200px; height:100px; margin:10px; top:10px; left:10px; border:#6F0 solid 3px; background-color:#F39; position:absolut 阅读全文
posted @ 2016-07-13 08:31 zl大王派我来巡山 阅读(159) 评论(2) 推荐(0) 编辑
摘要: <body background="../HTML基础/0709/1234.jpg"><center><form><table width="1000" height="600" border="0" cellpadding="0" cellspacing="0" > <tr><td>邮箱:<td> 阅读全文
posted @ 2016-07-13 08:25 zl大王派我来巡山 阅读(227) 评论(0) 推荐(0) 编辑