725
725
privacy int NOT NULL default '0',
726
726
last_mod_date timestamp NOT NULL,
727
727
last_mod_id int NOT NULL default '0',
728
last_app_date timestamp NOT NULL,
728
last_app_date timestamp NULL,
729
729
last_app_id int default '-1',
730
730
version int NOT NULL default '0',
731
731
assigned_scps int default '0',
732
732
status int default '0'
733
733
) ENGINE=$engine_type;
734
INSERT INTO t1 VALUES (4077711111,'SeanWheeler',90,2,20020111112846,500,00000000000000,-1,2,3,1);
734
INSERT INTO t1 VALUES (4077711111,'SeanWheeler',90,2,20020111112846,500,NULL,-1,2,3,1);
735
735
INSERT INTO t1 VALUES (9197722223,'berry',90,3,20020111112809,500,20020102114532,501,4,10,0);
736
INSERT INTO t1 VALUES (650,'San Francisco',0,0,20011227111336,342,00000000000000,-1,1,24,1);
736
INSERT INTO t1 VALUES (650,'San Francisco',0,0,20011227111336,342,NULL,-1,1,24,1);
737
737
INSERT INTO t1 VALUES (302467,'Sue\'s Subshop',90,3,20020109113241,500,20020102115111,501,7,24,0);
738
738
INSERT INTO t1 VALUES (6014911113,'SudzCarwash',520,1,20020102115234,500,20020102115259,501,33,32768,0);
739
739
INSERT INTO t1 VALUES (333,'tubs',99,2,20020109113440,501,20020109113440,500,3,10,0);
744
744
privacy int NOT NULL default '0',
745
745
last_mod_date timestamp NOT NULL,
746
746
last_mod_id int NOT NULL default '0',
747
last_app_date timestamp NOT NULL,
747
last_app_date timestamp NULL,
748
748
last_app_id int default '-1',
749
749
version int NOT NULL default '0',
750
750
assigned_scps int default '0',
751
751
status int default '0'
752
752
) ENGINE=$engine_type;
753
INSERT INTO t2 VALUES (4077711111,'SeanWheeler',0,2,20020111112853,500,00000000000000,-1,2,3,1);
753
INSERT INTO t2 VALUES (4077711111,'SeanWheeler',0,2,20020111112853,500,NULL,-1,2,3,1);
754
754
INSERT INTO t2 VALUES (9197722223,'berry',90,3,20020111112818,500,20020102114532,501,4,10,0);
755
INSERT INTO t2 VALUES (650,'San Francisco',90,0,20020109113158,342,00000000000000,-1,1,24,1);
755
INSERT INTO t2 VALUES (650,'San Francisco',90,0,20020109113158,342,NULL,-1,1,24,1);
756
756
INSERT INTO t2 VALUES (333,'tubs',99,2,20020109113453,501,20020109113453,500,3,10,0);
757
757
select * from t1;
758
758
select * from t2;
1085
1085
(stamp))ENGINE=$engine_type;
1086
1086
insert into t1 values (1),(2),(3);
1087
1087
# Note that timestamp 3 is wrong
1088
--error 1685 # Bad timestamp
1089
1089
insert into t2 values (1, 20020204130000),(2, 20020204130000),(4,20020204310000 ),(5,20020204230000);
1090
1090
SELECT col1 FROM t1 UNION SELECT col1 FROM t2 WHERE stamp <
1091
1091
'20020204120000' GROUP BY col1;