welcome to Qijie's Blog 薛其杰

随笔分类 -  DataBase

SQL语言Select经典语句
摘要:SQL语言中的Select语句最经典6问 阅读全文
posted @ 2019-05-22 17:13 零点零一 阅读(1081) 评论(0) 推荐(0)
Row_Number() and Rank() in SQL
摘要:使用数据库的row_number() 和rank()方法 阅读全文
posted @ 2019-05-21 16:47 零点零一 阅读(213) 评论(0) 推荐(0)
SQL数据库中查询中加N'' 前缀是什么意思
摘要:It's declaring the string as nvarchar data type, rather than varchar You may have seen Transact-SQL code that passes strings around using an N prefix. 阅读全文
posted @ 2017-12-13 16:53 零点零一 阅读(1133) 评论(0) 推荐(0)
将对象序列化,反序列化到XML
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; using Windows.Storage; namespace ... 阅读全文
posted @ 2016-03-18 16:17 零点零一 阅读(370) 评论(0) 推荐(0)
Newtonsoft.Json 处理多态类型的反序列化
摘要:Newtonsoft.Json的序列化和反序列化很成熟也很好用, 最近在处理多态类型的反序列化中遇到了问题, 反序列化后只能到基类,而得不到也不能转换到子类。从网上查询了一番后,需要写一个创建类型的Converter, 下面我们一步一步来: 1. 首先说明类型的定义, 为了做这个实验,我定义了一个基 阅读全文
posted @ 2016-03-18 15:40 零点零一 阅读(10917) 评论(0) 推荐(4)
DBImg: 图片文件-二进制文件的转换
摘要:using System;using System.IO;using System.Drawing;//using System.Collections.Generic;//using System.Linq;//using System.Text;//using System.Threading.... 阅读全文
posted @ 2015-05-25 10:16 零点零一 阅读(326) 评论(0) 推荐(0)
理解聚集索引与非聚集索引
摘要:本文内容转载于 http://www.cnblogs.com/tuyile006/archive/2009/08/28/1555615.html微软的SQL SERVER提供了两种索引:聚集索引(clustered index,也称聚类索引、簇集索引)和非聚集索引(nonclustered index,也称非聚类索引、非簇集索引)…… (一)深入浅出理解索引结构 实际上,您可以把索引理解为一种特殊的目录。微软的SQL SERVER提供了两种索引:聚集索引(clustered index,也称聚类索引、簇集索引)和非聚集索引(nonclustered index,也称非聚类索引、非簇集索... 阅读全文
posted @ 2014-03-19 15:37 零点零一 阅读(295) 评论(0) 推荐(0)
数据库获取数据库中表信息
摘要:获取数据库中的表, 首先选中要获取的数据库, 然后执行命令:select * from MSLFinanceData.INFORMATION_SCHEMA.TABLES where TABLE_TYPE='Base Table'获取数据库中的表以及每个表的列名Select dbo.sysobjects.name as Table_name, dbo.syscolumns.name AS Column_name FROM dbo.syscolumns INNER JOIN dbo.sysobjects ON dbo.syscolumns.id = dbo.sysobjects.i 阅读全文
posted @ 2014-01-10 18:52 零点零一 阅读(355) 评论(0) 推荐(0)