时间:2021-07-01 10:21:17 帮助过:12人阅读
=========================================================================================================
mysql中timestamp相关、日期时间相关:
mysql中timestamp格式的字段设置当前日期时间:http://www.cnblogs.com/lhj588/p/4245719.html;
mysql中日期和时间类型:http://www.cnblogs.com/panxuejun/p/6222138.html;
mysql中同时设置多个字段类型为timestamp:(1) http://www.cnblogs.com/xbdeng/p/5679026.html;
(2) http://blog.csdn.net/javastart/article/details/52048430;
1 ALTER TABLE `test_time` 2 MODIFY COLUMN `time1` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP , 3 MODIFY COLUMN `time2` timestamp NOT NULL DEFAULT 0 AFTER `time1`, 4 MODIFY COLUMN `time3` timestamp NOT NULL DEFAULT 0 AFTER `time2` ; 5 6 insert into test_time (id,time2,time3) values (6,null,null); 7 8 insert into test_time (id) values (6); -- 这样的话另两个设置为0的时间段默认赋值为 0000-00-00 00:00:00
==============================================================================================================
mysql批量修改表名sql:http://www.cnblogs.com/baby123/p/5958579.html。
mysql字符串截取函数substring的使用:http://www.jb51.net/article/27458.htm。
=========================================================================================================
查询oracle的历史操作记录:http://www.cnblogs.com/love540376/p/6339639.html。
1 select t.SQL_TEXT, t.FIRST_LOAD_TIME from v$sqlarea t where t.FIRST_LOAD_TIME like ‘2010-05-30‘ order by t.FIRST_LOAD_TIME desc;
mysql表名等大小写敏感问题、字段类型timestamp、批量修改表名、oracle查询历史操作记录等
标签:nbsp sql http substring java class 记录 设置 net