日期:2014-05-18 浏览次数:20984 次
java.text.SimpleDateFormat date = new java.text.SimpleDateFormat("MM/dd/yyyy, hh:mm:ss");
//"月/日/年, 时/分/秒"
String receivedTime = date.format(new Date(System.currentTimeMillis()));
------解决方案--------------------
select now(); select current_date; select sysdate();
------解决方案--------------------
建表的时候
youdate timestamp NOT NULL default CURRENT_TIMESTAMP
这样好象可以。