在我们平时的工作开发中.我们一般会遇到这种一个问题:某个实体的某个字段是DateTime类型的,但是我们在界面上仅仅想让它显示日期不显示时间! 一个订单实体: //订单类 public class order { //订单ID public int id{get;set;} //物品ID public int resId{get;set;} //物品名称 public string resName { get; set; } //物品价格 public decimal price…
select sum(studychj) as tofflinejz from afterline where studybegin >= '2010-01-01 00:00:00' and studyend <= '2010-12-01 00:00:00'; 这么写不报错,但得出结果不准确. 方法一: 你也可以: select * from t1 where unix_timestamp(time1) > unix_timestamp('2011-03-03 17:39:05') an…
在toad中->view->option->data->display large number in scientific notation,不选择该选项即可. (在pl/sql developer中->tools->preferences->sql windows->number fields tochar,选中该选项即可.)…