高精度的数据类型转换为低精度的数据类型是显示转换,低精度的转换为高精度的是隐式转换. 温馨提示:不能说强制类型转换是从低精度到高精度. int a=666;float b=(float)a: 由a到b的转换是低精度到高精度的转换,为隐式转换,但是也加了强制转换(float),当然不加也是对的. 1.隐式转换示例: using System; using System.Collections.Generic; using System.Linq; using System.Text; using
======== 测试表1信息 =======SQL> select count(*) from tb_test; COUNT(*)---------- 3000000 SQL> select count(*) from tb_test where name='1' or name='0'; COUNT(*)---------- 3000000 SQL> desc tb_test Name Null? Type ----