Server IP : 172.67.216.182 / Your IP : 172.70.142.19 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/engines/funcs/r/ |
Upload File : |
DROP TABLE IF EXISTS t1,t2,t3; SET sql_mode='NO_ENGINE_SUBSTITUTION'; Warnings: Warning 3090 Changing sql mode 'NO_AUTO_CREATE_USER' is deprecated. It will be removed in a future release. SET TIME_ZONE="+03:00"; CREATE TABLE t1(c1 DATE NOT NULL PRIMARY KEY); SET TIMESTAMP=1171346973; INSERT INTO t1 (c1) VALUES(NOW()); Warnings: Note 1265 Data truncated for column 'c1' at row 1 INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01')); Warnings: Note 1265 Data truncated for column 'c1' at row 1 INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'2 02:01:01')); Warnings: Note 1265 Data truncated for column 'c1' at row 1 INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'3 03:01:01')); Warnings: Note 1265 Data truncated for column 'c1' at row 1 INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'4 04:01:01')); Warnings: Note 1265 Data truncated for column 'c1' at row 1 SELECT * FROM t1 ORDER BY c1; c1 2007-02-13 2007-02-14 2007-02-15 2007-02-16 2007-02-17 DELETE FROM t1 WHERE c1 <= ADDTIME(NOW(),'2 02:01:01'); SELECT * FROM t1 ORDER BY c1; c1 2007-02-16 2007-02-17 DROP TABLE t1; CREATE TABLE t1(c1 TIME NOT NULL PRIMARY KEY); SET TIMESTAMP=1171346973; INSERT INTO t1 (c1) VALUES(NOW()); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'2 02:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'3 03:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'4 04:01:01')); SELECT * FROM t1 ORDER BY c1; c1 09:09:33 10:10:34 11:10:34 12:10:34 13:10:34 DELETE FROM t1 WHERE c1 <= ADDTIME(NOW(),'2 02:01:01'); SELECT * FROM t1 ORDER BY c1; c1 12:10:34 13:10:34 DROP TABLE t1; CREATE TABLE t1(c1 DATETIME NOT NULL PRIMARY KEY); SET TIMESTAMP=1171346973; INSERT INTO t1 (c1) VALUES(NOW()); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'2 02:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'3 03:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'4 04:01:01')); SELECT * FROM t1 ORDER BY c1; c1 2007-02-13 09:09:33 2007-02-14 10:10:34 2007-02-15 11:10:34 2007-02-16 12:10:34 2007-02-17 13:10:34 DELETE FROM t1 WHERE c1 <= ADDTIME(NOW(),'2 02:01:01'); SELECT * FROM t1 ORDER BY c1; c1 2007-02-16 12:10:34 2007-02-17 13:10:34 DROP TABLE t1; CREATE TABLE t1(c1 TIMESTAMP NOT NULL PRIMARY KEY); SET TIMESTAMP=1171346973; INSERT INTO t1 (c1) VALUES(NOW()); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'2 02:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'3 03:01:01')); INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'4 04:01:01')); SELECT * FROM t1 ORDER BY c1; c1 2007-02-13 09:09:33 2007-02-14 10:10:34 2007-02-15 11:10:34 2007-02-16 12:10:34 2007-02-17 13:10:34 DELETE FROM t1 WHERE c1 <= ADDTIME(NOW(),'2 02:01:01'); SELECT * FROM t1 ORDER BY c1; c1 2007-02-16 12:10:34 2007-02-17 13:10:34 DROP TABLE t1; SET TIME_ZONE= @@global.time_zone; SET sql_mode=default;