设为首页 加入收藏

TOP

sql创建表变量,转百分数
2017-10-13 10:41:02 】 浏览:10062
Tags:sql 创建 变量 百分数

declare @tab table(

ID nt identity(1,1) primary key, --从1开始,每次自增1

,Name nvarchar(200)

)

declare a float

select @NodesPercentage=Cast((cast(round((case when a>1 then 1 else a end),2) as numeric(10,2)))*100 as varchar(20))+'%'

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇.net 爬虫框架技术选型 下一篇ASP.NET MVC HttpPostedFileBase..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目