创建一个数据表:AdoStudent 表名: Code - 编号:主键 S101 S102 S103Name - 姓名:Sex - 性别:男是true,女是falseBirthday - 生日:Score - 成绩:decimal 要求:程序一开启, 把所有的学生信息列出来:学号 姓名 性别 生日 ...
分类:
数据库 时间:
2016-07-08 23:16:18
阅读次数:
521
虽然mysql已经被收购了,但是作为市面上主流的数据库,还是要学习下。MySQL有三大类数据类型,分别为数字、日期\时间、字符串,这三大类中又更细致的划分了许多子类型:数字类型整数:tinyint、smallint、mediumint、int、bigint浮点数:float、double、real、decimal日期和时间:dat..
分类:
数据库 时间:
2016-07-08 12:05:50
阅读次数:
204
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> ul{ list-style-type:decimal; border:1px ...
分类:
Web程序 时间:
2016-07-07 17:30:21
阅读次数:
458
declare @low int , @unit varchar(10) , @val decimal(18,4) set @unit = 'KB'set @val = case when @unit = 'KB' then 1024 when @unit = 'MB' then 1024*1024 ...
分类:
数据库 时间:
2016-07-03 21:17:49
阅读次数:
212
栈当中存放的是值类型,如int,decimal,double,enum等 堆当中存放的是引用类型,如string,类等 如图,如果定义一个int类型的变量i: 1 int i = 5; int i = 5; 那么在内存中的实际情况是:直接在栈中存放i的值5. 如果顶一个string类型的变量s: 1 ...
分类:
其他好文 时间:
2016-06-29 22:18:40
阅读次数:
150
<!-- table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";} @page {margin:.75in .7in .75in .7in; mso-header-margin:.3in; ...
分类:
Web程序 时间:
2016-06-28 20:37:12
阅读次数:
211
转 http://kwon.iteye.com/blog/1068255 http://blog.csdn.net/tvvbbb/article/details/47256943 public static string DecimalToString(decimal d) { return d.T ...
/// <summary> /// 实体 /// </summary> public class Product { public int ID { get; set; } public string Name { get; set; } public decimal Price { get; se ...
分类:
编程语言 时间:
2016-06-27 17:29:18
阅读次数:
177
In MySQL, DECIMAL(M,D) and NUMERIC(M,D) are the same, and both have a precision of exactly M digits. For example, a DECIMAL(18,9) column has nine digi ...
分类:
其他好文 时间:
2016-06-27 01:31:01
阅读次数:
114
前端用于控制输入框的数据类型,有两种数据类型,整形与decimal型,添加失去焦点事件,可轻松的实现对数据的验证。 Sh_decimal(input) Contents Sh_decimal(input) obj _type _default html代码 fun_blur() Contents S ...
分类:
Web程序 时间:
2016-06-24 12:13:43
阅读次数:
231