如何把小数后面后面超过两位的数全部检索出来如100.3123121231.231231.234234103.232423415.4645656456
查询结果
1.2342343.23242345.4645656456
查询结果
1.2342343.23242345.4645656456
解决方案 »
- 奇怪的SQL语句查询,求解答
- 导入XLS文件时如何读取本地而非服务器的文件
- 如何在标准C中嵌入SQL语句,将数据写入MS-SQL Server数据库
- 求助一个存储过程
- NULL如何select
- sql server 跨服务器操作 取不到表自增列
- sql server 2000无法连接到windows2000 server
- 请问有没有关于SQL2000存储过程编写的网站,高分求教!!!
- 向高手请教:如何在应用程序中创建、修改一个存储过程,要求能保持一定的格式?
- 把数据库里的varchar型,转换成java程序中的int型,为什么出错???
- 跨数据库查询,sqlserver2000查询sqlserver2005
- 收藏 不显示删除回复显示所有回复显示星级回复显示得分回复 如何筛选重复值又保持行次序不变??
select 123121231.23 a union all
select 100.3 union all
select 1231.234234 union all
select 103.2324234 union all
select 15.4645656456 ) tselect * from #tselect * from #t
where a-cast(a as decimal(18,2))>0
/*
a
---------------------------------------
1231.2342340000
103.2324234000
15.4645656456
*/
select 123121231.23 a union all
select 100.3 union all
select 1231.234234 union all
select 103.2324234 union all
select 15.4645656456 ) tselect * from #tselect a%10 as a from #t
where a-cast(a as decimal(18,2))>0
/*
a
---------------------------------------
1.2342340000
3.2324234000
5.4645656456*/