在程序中,从数据库中读取到的日期时间类型数据一般是这种格式:"/Date(1355109408000+0800)/" 要经过js函数处理变为格式:'2012-12-10 11:05:21' 用此js函数即可搞定: function timeFormatter(value) { var da = new Date(parseInt(value.replace("/Date(", "").replace(")/" , "…
在Mysql数据库中,想要实现一条数据的自增一功能(即插入此数据时填写null即可,系统自动+1),可直接在所在列使用语句auto-increment. id int primary key auto_increment 而在Oracle数据库中不可这样使用.下面介绍怎样在Oracle数据库中实现对id列的自增一的功能. 1 创建一张表cutomers.(无需多言) create table customers( id ), name ) not null, address ), phone )…