上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 25 下一页
摘要: 1、https://sourceforge.net/projects/orwelldevcpp/?source=directory 2、 3、 4、 5、看到下面页面表示安装已完成啦 阅读全文
posted @ 2018-05-11 20:26 Strugglinggirl 阅读(388) 评论(0) 推荐(0) 编辑
摘要: ----------------------向表中插入多条记录-------------------- --将TblStudent表的结构和表中的数据备份到TblStudent20140506Backup表中。 --TblStudent20140506Backup表是在执行 select into 语句时创建的。 --select into 语句不能重复执行,因为每次执行都会创建一个TblS... 阅读全文
posted @ 2017-07-22 12:12 Strugglinggirl 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 联合结果集union (集合运算符) 最好还是使用union all。 阅读全文
posted @ 2017-07-19 12:20 Strugglinggirl 阅读(216) 评论(0) 推荐(0) 编辑
摘要: ------------------------类型转换函数------------------------ --cast(表达式 as 数据类型) --convert(数据类型,表达式) select 100.0+cast('1000' as int) select 100.0+convert(int,'1000') select '您的班级编号:'+convert(char(1),1) se... 阅读全文
posted @ 2017-07-19 09:38 Strugglinggirl 阅读(204) 评论(0) 推荐(0) 编辑
摘要: group by having SELECT 语句的处理顺序 以下步骤显示SELECT语句的处理顺序。 1、FROM 2、ON 3、JOIN 4、WHERE 5、GROUP BY 6、with cube 或with rollup 7、HAVING 8、SELECT 8-1>选择列 8-2>disti 阅读全文
posted @ 2017-07-19 08:25 Strugglinggirl 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 表中数据是集合,集合是没有顺序的。order by返回的数据是有顺序的,故此我们把order by以后返回的数据集合叫“游标”。 阅读全文
posted @ 2017-07-19 02:21 Strugglinggirl 阅读(174) 评论(0) 推荐(0) 编辑
摘要: --------------------空值处理--------------------- select * from TblStudent --查询所有年龄是null的同学学习信息 --null值无法使用 = 或 来进行比较 --unknown --判断null 值必须使用is null 或者 is not null select * from TblStudent where tsage... 阅读全文
posted @ 2017-07-19 01:47 Strugglinggirl 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 模糊查询——针对字符串 阅读全文
posted @ 2017-07-19 00:58 Strugglinggirl 阅读(170) 评论(0) 推荐(0) 编辑
摘要: --------------------带条件查询--------------------- --select 列 --from 表 --where 条件 --查询没有及格的学生的学号(假设:数学或英语,只要有一门没有及格就叫做没有及格) select tsId from TblScore select tsId from TblScore where tEnglish=20 and... 阅读全文
posted @ 2017-07-18 08:53 Strugglinggirl 阅读(171) 评论(0) 推荐(0) 编辑
摘要: SQL 聚合函数(把多条数据变成一条,需要用到分组,然后统计): MAX(最大值)、MIN(最小值)、AVG(平均值)、SUM(和)、COUNT(数量:记录的条数) 阅读全文
posted @ 2017-07-18 08:05 Strugglinggirl 阅读(144) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 25 下一页