def init(self,cr): tools.sql.drop_view_if_exists(cr, 'custrom_product_infomation_report') cr.execute(""" create or replace view custrom_product_infomation_report as ( select t0.id,t0.hpartner_id as hpartner_id, t0.khwl_code as khwl_code,t1.
public static String changeCellToString(XSSFCell cell){ String result = "";// Object value = null; DecimalFormat df = new DecimalFormat("#"); if (null != cell) { switch (cell.getCellType()) { case HSSFCell.CELL_TYPE_NUMERIC:// 数字类型 if
string time = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); 下面是常见的一些日期时间显示格式 标准的Format格式Format Format 模式 d MM/dd/yyyy 如( 2001-3-27) D dddd, MMMM dd, yyyy 如(2001年3月27日) f dddd, MMMM dd, yyyy HH:mm 如(2001年3月27日 0:00) F dddd,
select … into outfile 'path' 备份 此种方式恢复速度非常快,比insert的插入速度要快的多,他跟有备份功能丰富的mysqldump不同的是,他只能备份表中的数据,并不能包含表的结构.如果备份完成之后,表被drop,是无法实现恢复操作的(除非有表结构). mysql> select * from t1 into outfile '/mydata/mysql/mysql3307/data/t1.sql'; ERROR 1290 (HY000): The MySQL se