码迷,mamicode.com
首页 >  
搜索关键字:decimal    ( 1358个结果
C# sqlite在使用cast(sum(a) as decimal) 时认作int型的问题处理
sqlite使用cast(sum(a) as decimal),如果a小数部分都是0,那么填充到Table时,Table中字段会被认作System.Int64类型。 C# 中DataTable转实体类的时候就会报错,"类型“System.Int64”的对象无法转换为类型“System.Decimal ...
分类:数据库   时间:2017-05-18 01:27:12    阅读次数:952
java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result异常的解决方法
JAVA程序异常:java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result。发现报错的语句是: 1 foo.divide(bar)); 1 foo.d ...
分类:编程语言   时间:2017-05-15 11:13:42    阅读次数:342
1015. Reversible Primes (20)(数论:素数、进制转换)
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re ...
分类:其他好文   时间:2017-05-14 00:49:11    阅读次数:311
SQLServer时间分段查询
统计连续时间段数据 if OBJECT_ID(N'Test',N'U') is not null drop table Test go create table Test( pscode decimal(15), outputcode int, monitortime datetime ) inse ...
分类:数据库   时间:2017-05-13 14:52:38    阅读次数:185
1010. Radix (25)(进制 + 二分 + 模拟)
Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is "yes", if 6 is a decimal number and 110 is ...
分类:其他好文   时间:2017-05-08 23:29:32    阅读次数:344
图解:C#引用类型内存详细分析
概念明细:栈:栈是连续的内存空间堆:堆可以无限大,但是不保证是连续的。查找起来比较慢值类型:在内存中占有的字节数是一定的(int,char,double,float,long,short,byte,bool,enum,struct,decimal)引用类型:引用类型在栈中开辟一块内存,存储一个固定大 ...
分类:Windows程序   时间:2017-05-05 18:29:34    阅读次数:223
MySQL触发器
所谓的MySQL触发器实际上与一些编程语言中的事件/事件处理程序类似 触发器的建立 建立一张示例表。CREATE TABLE account(acct_num INT,account DECIMAL(10,2)); 建立触发器示例:CREATE TIGGER ins_sum BEFORE INSER ...
分类:数据库   时间:2017-04-30 22:53:16    阅读次数:171
mysql 流程函数 存储引擎 InnoDB简单特性
建表及插入数据语句: mysql> create table salary(userid int,salary decimal(9,2)); Query OK, 0 rows affected (0.11 sec) mysql> insert into salary values(1,1000),( ...
分类:数据库   时间:2017-04-29 18:52:59    阅读次数:236
【JAVAWEB学习笔记】08_MySQL&JDBC回顾
今天晨读单词: CRUD:增删改查(create/read/update/delete)create:新增项目read:查询update:修改delete:删除 desc 表名:查看表结构drop:删除表primary key :主键 modify:修改(修改表中列的类型和长度) decimal:泛 ...
分类:数据库   时间:2017-04-29 17:29:41    阅读次数:263
(二) Mysql 数据类型简介
第一节:整数类型、浮点数类型和定点数类型 1,整数类型 2,浮点数类型和定点数类型 M 表示:数据的总长度(不包括小数点); D 表示:小数位; 例如 decimal(5,2) 123.45 存入数据的时候,按四舍五入计算 第二节:日期与时间类型 第三节:字符串类型 第四节:二进制类型 ...
分类:数据库   时间:2017-04-28 22:14:48    阅读次数:239
1358条   上一页 1 ... 59 60 61 62 63 ... 136 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!