mysql中系统时间为sysdate(),oracle中为sysdate
mysql中插入系统时间
INSERT INTO `sys_menu` (`menu_name`,`menu_code`,`parent_id`,`order_num`,`pre_path`,`after_path`,`url`,`menu_type`,`visible`,`icon`,`create_by`,
`create_time`,`update_by`,`update_time`,`remark` ) VALUES ('轮播图管理','backstage@carouselManagement@index',2,17,NULL,NULL,NULL,'C',0,'table',NULL,sysdate(),NULL,sysdate(),NULL );
navicat中使用日期字符串进行查询时需要用到str_to_date函数
SELECT * FROM b_p_xml WHERE ( upload_time BETWEEN STR_TO_DATE('2021-10-22 00:00:00','%Y-%m-%d %H:%i:%s') AND
STR_TO_DATE('2021-10-22 23:59:59','%Y-%m-%d %H:%i:%s') AND deal_status = 0 )
oracle中插入系统时间:
INSERT INTO `sys_menu` (`menu_name`,`menu_code`,`parent_id`,`order_num`,`pre_path`,`after_path`,`url`,`menu_type`,`visible`,`icon`,`create_by`,
`create_time`,`update_by`,`update_time`,`remark` ) VALUES ('轮播图管理','backstage@carouselManagement@index',2,17,NULL,NULL,NULL,'C',0,'table',NULL,sysdate,NULL,sysdate,NULL );