truncate `xxx`; //删除表数据 truncate table student; var LOGINNAME = $("input[name=‘logname‘]").val();//取值 param.setLoginTime(new Timestamp(System.currentTimeMillis())); //Timestamp时间戳 import java.sql.Timestamp; insert into student(name,age,gender,telephone,email, classId,regDate,className)values (‘小花‘,‘22‘,‘男‘,‘11111111‘,‘[email protected]‘, ‘11‘,‘2017-06-14‘,‘s24‘); select to_days(CURRENT_DATE,‘yyyy-MM-dd hh24:MI:ss‘) from student; select * from student where 1=1 and name like ‘%小花%‘ and regDate between ‘2017-06-14‘ and ‘2017-06-14‘ order by id; SELECT TO_CHAR(CURRENT_DATE, ‘yyyy-MM-dd hh:MM:ss‘)