- 博客(19)
- 收藏
- 关注
原创 daily-02
August 11th Sunday cloudyYesterday afternoon ,a big storm hit shanghai . Many roads are flooded with water. it’s nice day today. As usual, there are still a lot of people in the library.
2019-08-11 11:36:11 227
原创 'conda' is not recognized as an internal or external command
Windows 环境下 conda命令 报错 ‘conda’ is not recognized as an internal or external command可能由于没有配置环境变量所致,添加如下如下路径即可:\Anaconda\D:\Anaconda\ScriptsD:\Anaconda\Library\binD:\Anaconda\Library\mingw-w64\bi...
2019-07-13 19:08:55 5915
原创 daily-3
June 28th Friday sunnyToday i visited the Oriental Pearl Tower. I am a complicated mood,Standing in the tower , you can see a lot of beautiful . Shanghai is very charming.i love Shanghai. And t...
2019-06-28 15:06:16 165
原创 diary-02
June 1th Saturday CloudyToday is International Children’s Day .It’s also Saturday. My mood soured a little ; All morning long I moved in a dream. I took more than two stops of the subway. ...
2019-06-01 22:39:45 146
原创 DIARY
May 18th Saturday CloudyAs usual ,i came to the library early. i had a sense of loss. it is like you expect it to be sunny ,but a cloudy day.
2019-05-18 13:41:20 274
原创 python 基础知识
1,创建列表r_list=[1,2,3,4,5,6,7,8]print(r_list)2,获取指定元素#获取指定元素print(r_list[1])3,修改指定元素#修改指定元素r_list[0]=55print(r_list)4,添加元素#添加元素r_list.append(66)print(r_list) 5,指定位置插入...
2019-04-13 16:05:02 125
原创 单词故事
If you wish to be good, you will be good1,gut 勇气; 内脏; 直觉; 肠;本能的,直觉的;2,but 但是; 而是; 除了; 只因为; 借口; 推辞; 但是; 反对; bus 公共汽车; 巴士; 大客车;3,nut 螺母,螺帽; 坚果,坚果果仁; 难对付的人; [乐]弓根;哥哥g 开着 爸爸b 的汽车bus ,听着梁咏琪的勇气gut ,吃着奶...
2019-04-13 11:09:19 258
原创 pandas 读取excel 指定sheet
pandas 读取excel 指定sheet1,准备excel 文件文件2内容2,python 代码 import pandas as pd ; #文件路径 file_path='C:/Users/ruibc/Desktop/python/rainbow_py1.xlsx' #读取sheet的名字sheetName='Sheet1'file=pd.re...
2019-03-09 15:49:12 52763 2
原创 sql server 分区
sql server 支持表和索引分区。已分区表和已分区索引的数据划分为分布于一个数据库中多个文件组的单元。数据是安水平方式分区的。因此多组行映射到单个的分区。单个索引或表的所有分区都必须位于同一个数据库中。对数据查询或进行更新时,表或索引将被视为单个逻辑实体。 创建已分区表或索引通常包含四个操作: 创建将持有分区方案所指定的分区的文件组和相应的文件。 创建一个分区函数,该函数根据制定列的列...
2018-07-02 17:27:23 424
原创 sql server 索引
1 创建索引 create index index_name on SalesOrder_copy (column)2 删除索引 drop index index_name on SalesOrder_copy
2018-06-21 15:59:51 163
原创 sql server 面试题
查询两张表相同的数据--01select * from #tb1intersectselect * from #tb2查询两张表不同的数据select * from #tb1exceptselect * from #tb2
2018-06-21 15:41:50 12105 2
原创 sql server 游标
对结果集进行逐行处理,主要用于存储过程、触发器。declare cursor_name cursor –声明游标 for select * from [dbo].[eemp] open cursor_name –打开游标 fetch next from cursor_name while @@FETCH_STATUS=0 begin fetch next from cu...
2018-06-19 17:37:01 116
原创 sql server 优化
应尽量避免在 where 子句中使用!=或<>操作符,否则将引擎放弃使用索引而进行全表扫描。对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select column from where tb_name whe...
2018-06-07 10:11:29 146
原创 sql server 存储过程
存储过程 是由一个或多个Transact_SLQ 语句组成的一个组。 存储过程可以调用存储过程。 优点 减少了服务器、客户端的网络流量,更强的安全性,代码重复使用,更容易维护,改进性能。 1.创建存储过程if object_id ('spu_01','p') is not nulldrop procedure spu_01create procedure spu_01as b...
2018-06-05 20:26:57 174
原创 sql server 视图
视图是一种虚拟表,同表一样,视图包含一系列带有名称的行和列数据作用:1,集中用户需要的数据2,用作安全机制,数据管理员只允许用户通过视图查询,而不授予用户直接访问视图基础表的权限。3,提高性能,存储复杂查询创建视图create view v_name as selet * from tb_name修改视图alter view v_name asselect * from t...
2018-06-03 16:28:00 556
原创 sql server 主键
1.primary key 约束唯一标识数据库表中的每条记录。主键必须包含唯一的值。主键列不能包含 NULL 值。每个表都应该有一个主键,并且每个表只能有一个主键alter table tb_name add constraint pk_name primary key (column) 2.nuique 非主键列不可以有相同的之,可以有一个null 值,创建unique约束时会创建...
2018-06-01 09:47:42 840
原创 sql server 约束
1.with nocheck 只检查新数据alter table tb_name with nocheckadd constraint check_name check (column)2.check 检查所有数据alter table t'b_name add constraint check_name check (cilumn)3. 删除约束 alter table tb...
2018-05-31 15:32:04 742
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人