正文
MS SQL自定义函数IsPositiveInteger MS SQL自定义函数IsNumeric 水晶报表使用IEnumerable<T>数据源
小程序:扫一扫查出行
【扫一扫了解最新限行尾号】
复制小程序
【扫一扫了解最新限行尾号】
复制小程序
MS SQL自定义函数IsPositiveInteger 判断字符串是否为正整数,0开始的的数字不算。
SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE FUNCTION [dbo].[svf_IsPositiveInteger]( @string NVARCHAR(MAX)) RETURNS BIT --函数返BIT数据类型,是数字返回1,非数字返回0。ASBEGIN DECLARE @rtv BIT = 1 DECLARE @str NVARCHAR(MAX) = LTRIM(RTRIM(ISNULL(@string,''))) --去除前后空格,如果为NULL转为'' IF ASCII(SUBSTRING(@str, 1, 1)) = 48 --如果字符串第一位为0 BEGIN SET @rtv = 0 --直接判断为非正整数 END ELSE BEGIN DECLARE @start INT = 1; DECLARE @end INT = LEN(@str) --获取字符串长度 WHILE (@start <= @end) --循环字符串每一个字符 BEGIN DECLARE @Numeric VARCHAR(1) = '' SET @Numeric = SUBSTRING(@str, @start, @start + 1) -- 每循环一次从左边获取一位字符 IF ASCII(@Numeric) >= 48 AND ASCII(@Numeric) <= 57 --如果是数字 BEGIN SET @start = @start + 1; CONTINUE --继续循环 END ELSE BEGIN SET @rtv = 0 BREAK --跳出循环 END END END RETURN @rtvEND
列举例子说明:
CREATE TABLE [dbo].[uTstTable] ([col1] NVARCHAR(20),[col2] NVARCHAR(20),[col3] NVARCHAR(20),[col4] NVARCHAR(20),[col5] NVARCHAR(20),[col6] NVARCHAR(20),[col7] NVARCHAR(20))GOINSERT INTO [dbo].[uTstTable] ([col1],[col2],[col3],[col4],[col5],[col6],[col7])VALUES ('0.65','000435','SF46DG','3800','$54KQ','-0034','-855.4')GOSELECT [dbo].[svf_IsPositiveInteger] ([col1]) AS [col1],[dbo].[svf_IsPositiveInteger] ([col2]) AS [col2],[dbo].[svf_IsPositiveInteger] ([col3]) AS [col3],[dbo].[svf_IsPositiveInteger] ([col4]) AS [col4],[dbo].[svf_IsPositiveInteger] ([col5]) AS [col5],[dbo].[svf_IsPositiveInteger] ([col6]) AS [col6],[dbo].[svf_IsPositiveInteger] ([col7]) AS [col7]FROM [dbo].[uTstTable]GO
MS SQL自定义函数IsNumeric 判断字符串是否为纯数字,负数不算。如'00012','54585','1000'
SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE FUNCTION [dbo].[svf_IsNumeric]( @string NVARCHAR(MAX)) RETURNS BIT --函数返BIT数据类型,是数字返回1,非数字返回0。ASBEGIN DECLARE @rtv BIT = 1 DECLARE @str NVARCHAR(MAX) = LTRIM(RTRIM(ISNULL(@string,''))) --去除前后空格,如果为NULL转为'' DECLARE @start INT = 1; DECLARE @end INT = LEN(@str) --获取字符串长度 WHILE (@start <= @end) --循环字符串每一个字符 BEGIN DECLARE @Numeric VARCHAR(1) = '' SET @Numeric = SUBSTRING(@str, @start, @start + 1) -- 每循环一次,从左边获取一位字符 IF ASCII(@Numeric) >= 48 AND ASCII(@Numeric) <= 57 --如果是数字 BEGIN SET @start = @start + 1; CONTINUE --继续循环 END ELSE BEGIN SET @rtv = 0 BREAK --跳出循环 END END RETURN @rtvEND
创建一个例子来演示:
CREATE TABLE [dbo].[uTable] ([col1] NVARCHAR(20),[col2] NVARCHAR(20),[col3] NVARCHAR(20),[col4] NVARCHAR(20),[col5] NVARCHAR(20),[col6] NVARCHAR(20),[col7] NVARCHAR(20))GOINSERT INTO [dbo].[uTable] ([col1],[col2],[col3],[col4],[col5],[col6],[col7])VALUES ('0.455','000435','SF46DG','4000','$%9KJ','-0034','-8554')GOSELECT [dbo].[svf_IsNumeric] ([col1]) AS [col1],[dbo].[svf_IsNumeric] ([col2]) AS [col2],[dbo].[svf_IsNumeric] ([col3]) AS [col3],[dbo].[svf_IsNumeric] ([col4]) AS [col4],[dbo].[svf_IsNumeric] ([col5]) AS [col5],[dbo].[svf_IsNumeric] ([col6]) AS [col6],[dbo].[svf_IsNumeric] ([col7]) AS [col7]FROM [dbo].[uTable]GO
水晶报表使用IEnumerable<T>数据源 这篇我们学习水晶报表,报表呈现的数据源是IEnumerable<T>。比如下面的数据:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using Insus.NET.Models;namespace Insus.NET.Entities{ public class MachineEntity { public IEnumerable<Machine> Machines() { return new List<Machine>() { { new Machine() { Key =1, ModelNumber ="TC03Q", Brand ="QT", ManufactureDate = Convert.ToDateTime("2008/12/31")} }, { new Machine() { Key =2, ModelNumber ="MH26U", Brand ="HW", ManufactureDate = Convert.ToDateTime("2012/03/09")} }, { new Machine() { Key =3, ModelNumber ="DW569", Brand ="XM", ManufactureDate = Convert.ToDateTime("2015/07/25")} } }; } }}
新建水晶报表:
按Next铵钮,略过Group By。
铵Next铵钮,略过Filter Fields。
报表创建OK。
根据这篇《ASP.NET MVC项目实现BasePage基类用作ASPX.CS网页继承》https://www.cnblogs.com/insus/p/9865023.html
我们还得在BasePage基类中,重载另一个方法:
在.aspx.cs网页中,就可以使用上面的方法:
程序运行:
学习完毕。
希望对你有所帮助。
MS SQL自定义函数IsPositiveInteger MS SQL自定义函数IsNumeric 水晶报表使用IEnumerable<T>数据源的更多相关文章- SQL Server编程(02)自定义函数
在编程过程中,我们通常把特定的功能语句块封装称函数,方便代码的重用.我们可以在SQL Server中自定义函数,根据函数返回值的区别,我们自定义的函数分两种:标量值函数和表值函数. 自定义函数的优点: ...
- SQL Server如何定位自定义标量函数被那个SQL调用次数最多浅析
前阵子遇到一个很是棘手的问题,监控系统DPA发现某个自定义标量函数被调用的次数非常高,高到一个离谱的程度.然后在Troubleshooting这个问题的时候,确实遇到了一些问题让我很是纠结,下文是解决 ...
- mysql、MS SQL关于分页的sql查询语句 limit 和row_number() OVER函数
在做项目的时候需要些分页,用的数据库是MySQL,之前看到的参考例子是用MS SQL做的,在MS SQL.Oracle里面有ROW_NUMBER() OVER函数可以在数据库里对数据进行分组.百度后的 ...
- 自定义函数导致的sql性能问题
同事说,某某报表跑的很慢,让我调查一下 优化前:该报表整体需要跑4小时以上. sql代码如下 SELECT /*省略多数查询字段*/ REP_FUN_REFCODEVALUE /*自定义函数*/ (P ...
- 自定义函数动态执行SQL语句
Oracle 动态SQL有两种写法:用 DBMS_SQL 或 execute immediate,建议使用后者. DDL 和 DML Sql代码 收藏代码 /*** DDL ***/ begin EX ...
- sql server函数(isnull,charindex,cast,自定义函数)
SELECT charindex( CAST ( dbo.ufn_IsNullOrEmpty ('109722A3-622D-4FD4-A060-0287C933A89E', a.OUID) AS V ...
- mybatis自定义插件动态修改sql语句
step1:定义Interceptor实现org.apache.ibatis.plugin.Interceptor import org.apache.commons.logging.Log; imp ...
- MS SQL Server迁移至Azure SQL(官方工具)
前面,我有尝试过将MS SQL Server数据数据迁移至Azure SQL,请参考<MS SQL Server迁移至Azure SQL>,使用的是第三方工具,但现在官方更新了工具,我们尝 ...
- SQL关于分页的sql查询语句 limit 和row_number() OVER函数
在做项目的时候需要些分页,用的数据库是mysql,之前看到的参考例子是用MS SQL做的,在MS SQL.ORACLE里面有ROW_NUMBER() OVER函数可以在数据库里对数据进行分组.百度后的 ...
随机推荐- GJM : Unity3D 高通Vuforia SDK AR 开发
一.AR概念: 增强现实(Augmented Reality,简称AR),是在虚拟现实的基础上发展起来的新技术,也被称之为混合现实.是通过计算机系统提供的信息增加用户对现实世界感知的技术,将虚拟的信息 ...
- cocos2d-x CocoStudio中场景触发器(Trigger)的代码部分和触发器之间的互调
这节继上一篇触发器扩展,讲一下代码部分的实现. 事件:EventDef.h 只有一个枚举,是对触发器事件的编号 #ifndef__EVENTDEF__ #define__EVENTDEF__ enum ...
- 【转载】HBase 数据库检索性能优化策略
转自:http://www.ibm.com/developerworks/cn/java/j-lo-HBase/index.html 高性能 HBase 数据库 本文首先介绍了 HBase 数据库基本 ...
- 2.Freshman阶段学习内容的确定
我刷知乎.在知乎上答题的程序员,不是很牛逼就是更牛逼,说起各种系统.各种系统的各种版本.各种语言.数据库.算法.IT届的各种圣战都有板有眼.信手拈来.头头是道,不得不服.这导致了一些非常严重的问题:我 ...
- javascript有用小技巧—实现分栏显示
记得给师哥师姐測试考试系统的时候,看到他们的考试页面能够实现隐藏左边的考生信息部分,当时认为好高大上.好人性化. 如今学了javascript,我也能实现这个功能了,以下来显摆一下. 1.页面设计: ...
- php打包文件为ZIP包后下载到本地
这是一个工作中需要打包下载当前产品的所有图片到本地,文件格式为ZIP压缩包,打包下载文件跟图片一样,本程序细节为实际情况,使用需按照自己实际情况书写:<?php/**************** ...
- hibernate 一对多 多对一 关系表 增删改查大礼包ps二级查也有
今天来到混元气功 这货大概的意思就是你中有我 我中有你 ps 这里就要说到维护关系 ps写这个用了我一下午.......也是刚刚好复习到这里 顺便就写写 注意:一般都在多方维护关系,至于是用单向还是用 ...
- bgp选路原则【第二部】
面向逻辑谈bgp选路原则(第二部) 终于到了BGP终极解析的第二部曲--BGP选路原则.与题目相呼应,我不会直接介绍选路原则的规则,而是从时间逻辑和空间逻辑上将所有的选路原则分层分类.因为只有从这种角 ...
- 学习 MeteoInfo二次开发教程(五)
1.ActiveMapFrame部分没有大问题,按教程来就行. private void SetMapView()和private void ActiveMapFrameChanged(object ...
- Python中浮点数精度处理
Python中,浮点数运算,经常会碰到如下情况: 出现上面的情况,主要还是因浮点数在计算机中实际是以二进制保存的,有些数不精确.比如说: 0.1是十进制,转化为二进制后它是个无限循环的数:0.0001 ...
判断字符串是否为正整数,0开始的的数字不算。
SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE FUNCTION [dbo].[svf_IsPositiveInteger]( @string NVARCHAR(MAX)) RETURNS BIT --函数返BIT数据类型,是数字返回1,非数字返回0。ASBEGIN DECLARE @rtv BIT = 1 DECLARE @str NVARCHAR(MAX) = LTRIM(RTRIM(ISNULL(@string,''))) --去除前后空格,如果为NULL转为'' IF ASCII(SUBSTRING(@str, 1, 1)) = 48 --如果字符串第一位为0 BEGIN SET @rtv = 0 --直接判断为非正整数 END ELSE BEGIN DECLARE @start INT = 1; DECLARE @end INT = LEN(@str) --获取字符串长度 WHILE (@start <= @end) --循环字符串每一个字符 BEGIN DECLARE @Numeric VARCHAR(1) = '' SET @Numeric = SUBSTRING(@str, @start, @start + 1) -- 每循环一次从左边获取一位字符 IF ASCII(@Numeric) >= 48 AND ASCII(@Numeric) <= 57 --如果是数字 BEGIN SET @start = @start + 1; CONTINUE --继续循环 END ELSE BEGIN SET @rtv = 0 BREAK --跳出循环 END END END RETURN @rtvEND
列举例子说明:
CREATE TABLE [dbo].[uTstTable] ([col1] NVARCHAR(20),[col2] NVARCHAR(20),[col3] NVARCHAR(20),[col4] NVARCHAR(20),[col5] NVARCHAR(20),[col6] NVARCHAR(20),[col7] NVARCHAR(20))GOINSERT INTO [dbo].[uTstTable] ([col1],[col2],[col3],[col4],[col5],[col6],[col7])VALUES ('0.65','000435','SF46DG','3800','$54KQ','-0034','-855.4')GOSELECT [dbo].[svf_IsPositiveInteger] ([col1]) AS [col1],[dbo].[svf_IsPositiveInteger] ([col2]) AS [col2],[dbo].[svf_IsPositiveInteger] ([col3]) AS [col3],[dbo].[svf_IsPositiveInteger] ([col4]) AS [col4],[dbo].[svf_IsPositiveInteger] ([col5]) AS [col5],[dbo].[svf_IsPositiveInteger] ([col6]) AS [col6],[dbo].[svf_IsPositiveInteger] ([col7]) AS [col7]FROM [dbo].[uTstTable]GO
MS SQL自定义函数IsNumeric 判断字符串是否为纯数字,负数不算。如'00012','54585','1000'
SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE FUNCTION [dbo].[svf_IsNumeric]( @string NVARCHAR(MAX)) RETURNS BIT --函数返BIT数据类型,是数字返回1,非数字返回0。ASBEGIN DECLARE @rtv BIT = 1 DECLARE @str NVARCHAR(MAX) = LTRIM(RTRIM(ISNULL(@string,''))) --去除前后空格,如果为NULL转为'' DECLARE @start INT = 1; DECLARE @end INT = LEN(@str) --获取字符串长度 WHILE (@start <= @end) --循环字符串每一个字符 BEGIN DECLARE @Numeric VARCHAR(1) = '' SET @Numeric = SUBSTRING(@str, @start, @start + 1) -- 每循环一次,从左边获取一位字符 IF ASCII(@Numeric) >= 48 AND ASCII(@Numeric) <= 57 --如果是数字 BEGIN SET @start = @start + 1; CONTINUE --继续循环 END ELSE BEGIN SET @rtv = 0 BREAK --跳出循环 END END RETURN @rtvEND
创建一个例子来演示:
CREATE TABLE [dbo].[uTable] ([col1] NVARCHAR(20),[col2] NVARCHAR(20),[col3] NVARCHAR(20),[col4] NVARCHAR(20),[col5] NVARCHAR(20),[col6] NVARCHAR(20),[col7] NVARCHAR(20))GOINSERT INTO [dbo].[uTable] ([col1],[col2],[col3],[col4],[col5],[col6],[col7])VALUES ('0.455','000435','SF46DG','4000','$%9KJ','-0034','-8554')GOSELECT [dbo].[svf_IsNumeric] ([col1]) AS [col1],[dbo].[svf_IsNumeric] ([col2]) AS [col2],[dbo].[svf_IsNumeric] ([col3]) AS [col3],[dbo].[svf_IsNumeric] ([col4]) AS [col4],[dbo].[svf_IsNumeric] ([col5]) AS [col5],[dbo].[svf_IsNumeric] ([col6]) AS [col6],[dbo].[svf_IsNumeric] ([col7]) AS [col7]FROM [dbo].[uTable]GO
水晶报表使用IEnumerable<T>数据源 这篇我们学习水晶报表,报表呈现的数据源是IEnumerable<T>。比如下面的数据:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using Insus.NET.Models;namespace Insus.NET.Entities{ public class MachineEntity { public IEnumerable<Machine> Machines() { return new List<Machine>() { { new Machine() { Key =1, ModelNumber ="TC03Q", Brand ="QT", ManufactureDate = Convert.ToDateTime("2008/12/31")} }, { new Machine() { Key =2, ModelNumber ="MH26U", Brand ="HW", ManufactureDate = Convert.ToDateTime("2012/03/09")} }, { new Machine() { Key =3, ModelNumber ="DW569", Brand ="XM", ManufactureDate = Convert.ToDateTime("2015/07/25")} } }; } }}
新建水晶报表:
按Next铵钮,略过Group By。
铵Next铵钮,略过Filter Fields。
报表创建OK。
根据这篇《ASP.NET MVC项目实现BasePage基类用作ASPX.CS网页继承》https://www.cnblogs.com/insus/p/9865023.html
我们还得在BasePage基类中,重载另一个方法:
在.aspx.cs网页中,就可以使用上面的方法:
程序运行:
学习完毕。
希望对你有所帮助。
判断字符串是否为纯数字,负数不算。如'00012','54585','1000'
SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE FUNCTION [dbo].[svf_IsNumeric]( @string NVARCHAR(MAX)) RETURNS BIT --函数返BIT数据类型,是数字返回1,非数字返回0。ASBEGIN DECLARE @rtv BIT = 1 DECLARE @str NVARCHAR(MAX) = LTRIM(RTRIM(ISNULL(@string,''))) --去除前后空格,如果为NULL转为'' DECLARE @start INT = 1; DECLARE @end INT = LEN(@str) --获取字符串长度 WHILE (@start <= @end) --循环字符串每一个字符 BEGIN DECLARE @Numeric VARCHAR(1) = '' SET @Numeric = SUBSTRING(@str, @start, @start + 1) -- 每循环一次,从左边获取一位字符 IF ASCII(@Numeric) >= 48 AND ASCII(@Numeric) <= 57 --如果是数字 BEGIN SET @start = @start + 1; CONTINUE --继续循环 END ELSE BEGIN SET @rtv = 0 BREAK --跳出循环 END END RETURN @rtvEND
创建一个例子来演示:
CREATE TABLE [dbo].[uTable] ([col1] NVARCHAR(20),[col2] NVARCHAR(20),[col3] NVARCHAR(20),[col4] NVARCHAR(20),[col5] NVARCHAR(20),[col6] NVARCHAR(20),[col7] NVARCHAR(20))GOINSERT INTO [dbo].[uTable] ([col1],[col2],[col3],[col4],[col5],[col6],[col7])VALUES ('0.455','000435','SF46DG','4000','$%9KJ','-0034','-8554')GOSELECT [dbo].[svf_IsNumeric] ([col1]) AS [col1],[dbo].[svf_IsNumeric] ([col2]) AS [col2],[dbo].[svf_IsNumeric] ([col3]) AS [col3],[dbo].[svf_IsNumeric] ([col4]) AS [col4],[dbo].[svf_IsNumeric] ([col5]) AS [col5],[dbo].[svf_IsNumeric] ([col6]) AS [col6],[dbo].[svf_IsNumeric] ([col7]) AS [col7]FROM [dbo].[uTable]GO
水晶报表使用IEnumerable<T>数据源 这篇我们学习水晶报表,报表呈现的数据源是IEnumerable<T>。比如下面的数据:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using Insus.NET.Models;namespace Insus.NET.Entities{ public class MachineEntity { public IEnumerable<Machine> Machines() { return new List<Machine>() { { new Machine() { Key =1, ModelNumber ="TC03Q", Brand ="QT", ManufactureDate = Convert.ToDateTime("2008/12/31")} }, { new Machine() { Key =2, ModelNumber ="MH26U", Brand ="HW", ManufactureDate = Convert.ToDateTime("2012/03/09")} }, { new Machine() { Key =3, ModelNumber ="DW569", Brand ="XM", ManufactureDate = Convert.ToDateTime("2015/07/25")} } }; } }}
新建水晶报表:
按Next铵钮,略过Group By。
铵Next铵钮,略过Filter Fields。
报表创建OK。
根据这篇《ASP.NET MVC项目实现BasePage基类用作ASPX.CS网页继承》https://www.cnblogs.com/insus/p/9865023.html
我们还得在BasePage基类中,重载另一个方法:
在.aspx.cs网页中,就可以使用上面的方法:
程序运行:
学习完毕。
希望对你有所帮助。
这篇我们学习水晶报表,报表呈现的数据源是IEnumerable<T>。比如下面的数据:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using Insus.NET.Models;namespace Insus.NET.Entities{ public class MachineEntity { public IEnumerable<Machine> Machines() { return new List<Machine>() { { new Machine() { Key =1, ModelNumber ="TC03Q", Brand ="QT", ManufactureDate = Convert.ToDateTime("2008/12/31")} }, { new Machine() { Key =2, ModelNumber ="MH26U", Brand ="HW", ManufactureDate = Convert.ToDateTime("2012/03/09")} }, { new Machine() { Key =3, ModelNumber ="DW569", Brand ="XM", ManufactureDate = Convert.ToDateTime("2015/07/25")} } }; } }}
新建水晶报表:
按Next铵钮,略过Group By。
铵Next铵钮,略过Filter Fields。
报表创建OK。
根据这篇《ASP.NET MVC项目实现BasePage基类用作ASPX.CS网页继承》https://www.cnblogs.com/insus/p/9865023.html
我们还得在BasePage基类中,重载另一个方法:
在.aspx.cs网页中,就可以使用上面的方法:
程序运行:
学习完毕。
希望对你有所帮助。
- SQL Server编程(02)自定义函数
在编程过程中,我们通常把特定的功能语句块封装称函数,方便代码的重用.我们可以在SQL Server中自定义函数,根据函数返回值的区别,我们自定义的函数分两种:标量值函数和表值函数. 自定义函数的优点: ...
- SQL Server如何定位自定义标量函数被那个SQL调用次数最多浅析
前阵子遇到一个很是棘手的问题,监控系统DPA发现某个自定义标量函数被调用的次数非常高,高到一个离谱的程度.然后在Troubleshooting这个问题的时候,确实遇到了一些问题让我很是纠结,下文是解决 ...
- mysql、MS SQL关于分页的sql查询语句 limit 和row_number() OVER函数
在做项目的时候需要些分页,用的数据库是MySQL,之前看到的参考例子是用MS SQL做的,在MS SQL.Oracle里面有ROW_NUMBER() OVER函数可以在数据库里对数据进行分组.百度后的 ...
- 自定义函数导致的sql性能问题
同事说,某某报表跑的很慢,让我调查一下 优化前:该报表整体需要跑4小时以上. sql代码如下 SELECT /*省略多数查询字段*/ REP_FUN_REFCODEVALUE /*自定义函数*/ (P ...
- 自定义函数动态执行SQL语句
Oracle 动态SQL有两种写法:用 DBMS_SQL 或 execute immediate,建议使用后者. DDL 和 DML Sql代码 收藏代码 /*** DDL ***/ begin EX ...
- sql server函数(isnull,charindex,cast,自定义函数)
SELECT charindex( CAST ( dbo.ufn_IsNullOrEmpty ('109722A3-622D-4FD4-A060-0287C933A89E', a.OUID) AS V ...
- mybatis自定义插件动态修改sql语句
step1:定义Interceptor实现org.apache.ibatis.plugin.Interceptor import org.apache.commons.logging.Log; imp ...
- MS SQL Server迁移至Azure SQL(官方工具)
前面,我有尝试过将MS SQL Server数据数据迁移至Azure SQL,请参考<MS SQL Server迁移至Azure SQL>,使用的是第三方工具,但现在官方更新了工具,我们尝 ...
- SQL关于分页的sql查询语句 limit 和row_number() OVER函数
在做项目的时候需要些分页,用的数据库是mysql,之前看到的参考例子是用MS SQL做的,在MS SQL.ORACLE里面有ROW_NUMBER() OVER函数可以在数据库里对数据进行分组.百度后的 ...
随机推荐- GJM : Unity3D 高通Vuforia SDK AR 开发
一.AR概念: 增强现实(Augmented Reality,简称AR),是在虚拟现实的基础上发展起来的新技术,也被称之为混合现实.是通过计算机系统提供的信息增加用户对现实世界感知的技术,将虚拟的信息 ...
- cocos2d-x CocoStudio中场景触发器(Trigger)的代码部分和触发器之间的互调
这节继上一篇触发器扩展,讲一下代码部分的实现. 事件:EventDef.h 只有一个枚举,是对触发器事件的编号 #ifndef__EVENTDEF__ #define__EVENTDEF__ enum ...
- 【转载】HBase 数据库检索性能优化策略
转自:http://www.ibm.com/developerworks/cn/java/j-lo-HBase/index.html 高性能 HBase 数据库 本文首先介绍了 HBase 数据库基本 ...
- 2.Freshman阶段学习内容的确定
我刷知乎.在知乎上答题的程序员,不是很牛逼就是更牛逼,说起各种系统.各种系统的各种版本.各种语言.数据库.算法.IT届的各种圣战都有板有眼.信手拈来.头头是道,不得不服.这导致了一些非常严重的问题:我 ...
- javascript有用小技巧—实现分栏显示
记得给师哥师姐測试考试系统的时候,看到他们的考试页面能够实现隐藏左边的考生信息部分,当时认为好高大上.好人性化. 如今学了javascript,我也能实现这个功能了,以下来显摆一下. 1.页面设计: ...
- php打包文件为ZIP包后下载到本地
这是一个工作中需要打包下载当前产品的所有图片到本地,文件格式为ZIP压缩包,打包下载文件跟图片一样,本程序细节为实际情况,使用需按照自己实际情况书写:<?php/**************** ...
- hibernate 一对多 多对一 关系表 增删改查大礼包ps二级查也有
今天来到混元气功 这货大概的意思就是你中有我 我中有你 ps 这里就要说到维护关系 ps写这个用了我一下午.......也是刚刚好复习到这里 顺便就写写 注意:一般都在多方维护关系,至于是用单向还是用 ...
- bgp选路原则【第二部】
面向逻辑谈bgp选路原则(第二部) 终于到了BGP终极解析的第二部曲--BGP选路原则.与题目相呼应,我不会直接介绍选路原则的规则,而是从时间逻辑和空间逻辑上将所有的选路原则分层分类.因为只有从这种角 ...
- 学习 MeteoInfo二次开发教程(五)
1.ActiveMapFrame部分没有大问题,按教程来就行. private void SetMapView()和private void ActiveMapFrameChanged(object ...
- Python中浮点数精度处理
Python中,浮点数运算,经常会碰到如下情况: 出现上面的情况,主要还是因浮点数在计算机中实际是以二进制保存的,有些数不精确.比如说: 0.1是十进制,转化为二进制后它是个无限循环的数:0.0001 ...
一.AR概念: 增强现实(Augmented Reality,简称AR),是在虚拟现实的基础上发展起来的新技术,也被称之为混合现实.是通过计算机系统提供的信息增加用户对现实世界感知的技术,将虚拟的信息 ...
这节继上一篇触发器扩展,讲一下代码部分的实现. 事件:EventDef.h 只有一个枚举,是对触发器事件的编号 #ifndef__EVENTDEF__ #define__EVENTDEF__ enum ...
转自:http://www.ibm.com/developerworks/cn/java/j-lo-HBase/index.html 高性能 HBase 数据库 本文首先介绍了 HBase 数据库基本 ...
我刷知乎.在知乎上答题的程序员,不是很牛逼就是更牛逼,说起各种系统.各种系统的各种版本.各种语言.数据库.算法.IT届的各种圣战都有板有眼.信手拈来.头头是道,不得不服.这导致了一些非常严重的问题:我 ...
记得给师哥师姐測试考试系统的时候,看到他们的考试页面能够实现隐藏左边的考生信息部分,当时认为好高大上.好人性化. 如今学了javascript,我也能实现这个功能了,以下来显摆一下. 1.页面设计: ...
这是一个工作中需要打包下载当前产品的所有图片到本地,文件格式为ZIP压缩包,打包下载文件跟图片一样,本程序细节为实际情况,使用需按照自己实际情况书写:<?php/**************** ...
今天来到混元气功 这货大概的意思就是你中有我 我中有你 ps 这里就要说到维护关系 ps写这个用了我一下午.......也是刚刚好复习到这里 顺便就写写 注意:一般都在多方维护关系,至于是用单向还是用 ...
面向逻辑谈bgp选路原则(第二部) 终于到了BGP终极解析的第二部曲--BGP选路原则.与题目相呼应,我不会直接介绍选路原则的规则,而是从时间逻辑和空间逻辑上将所有的选路原则分层分类.因为只有从这种角 ...
1.ActiveMapFrame部分没有大问题,按教程来就行. private void SetMapView()和private void ActiveMapFrameChanged(object ...
Python中,浮点数运算,经常会碰到如下情况: 出现上面的情况,主要还是因浮点数在计算机中实际是以二进制保存的,有些数不精确.比如说: 0.1是十进制,转化为二进制后它是个无限循环的数:0.0001 ...