最近做项目扩展的时候,遇到问题就是将整型转换成指定长度的16进制 刚开始就是直接使用 cast(12 as varbinary(4))但是发现这个不能解决我的问题 所以就上网搜了一下,然后改了改,下面就是函数: Create Function IntToHexLength(@Num int,@HxLength int) ) as begin ),@Length int set @res='' begin )+@res else )) + @res end set @Length=@HxLengt
-- ================================================ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: GGA -- Create date: 20131011 -- Description: 将INT值转换成指定长度的字符串,长度不够的在前面补0 -- =============
今天看到Json转DataTable的例子,总结一下.... using System; using System.Collections; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web; using System.Web.Script