837
837
privacy int NOT NULL default '0',
838
838
last_mod_date timestamp NOT NULL,
839
839
last_mod_id int NOT NULL default '0',
840
last_app_date timestamp NOT NULL,
840
last_app_date timestamp NULL,
841
841
last_app_id int default '-1',
842
842
version int NOT NULL default '0',
843
843
assigned_scps int default '0',
844
844
status int default '0'
846
INSERT INTO t1 VALUES (4077711111,'SeanWheeler',90,2,20020111112846,500,00000000000000,-1,2,3,1);
846
INSERT INTO t1 VALUES (4077711111,'SeanWheeler',90,2,20020111112846,500,NULL,-1,2,3,1);
847
847
INSERT INTO t1 VALUES (9197722223,'berry',90,3,20020111112809,500,20020102114532,501,4,10,0);
848
INSERT INTO t1 VALUES (650,'San Francisco',0,0,20011227111336,342,00000000000000,-1,1,24,1);
848
INSERT INTO t1 VALUES (650,'San Francisco',0,0,20011227111336,342,NULL,-1,1,24,1);
849
849
INSERT INTO t1 VALUES (302467,'Sue\'s Subshop',90,3,20020109113241,500,20020102115111,501,7,24,0);
850
850
INSERT INTO t1 VALUES (6014911113,'SudzCarwash',520,1,20020102115234,500,20020102115259,501,33,32768,0);
851
851
INSERT INTO t1 VALUES (333,'tubs',99,2,20020109113440,501,20020109113440,500,3,10,0);
856
856
privacy int NOT NULL default '0',
857
857
last_mod_date timestamp NOT NULL,
858
858
last_mod_id int NOT NULL default '0',
859
last_app_date timestamp NOT NULL,
859
last_app_date timestamp NULL,
860
860
last_app_id int default '-1',
861
861
version int NOT NULL default '0',
862
862
assigned_scps int default '0',
863
863
status int default '0'
865
INSERT INTO t2 VALUES (4077711111,'SeanWheeler',0,2,20020111112853,500,00000000000000,-1,2,3,1);
865
INSERT INTO t2 VALUES (4077711111,'SeanWheeler',0,2,20020111112853,500,NULL,-1,2,3,1);
866
866
INSERT INTO t2 VALUES (9197722223,'berry',90,3,20020111112818,500,20020102114532,501,4,10,0);
867
INSERT INTO t2 VALUES (650,'San Francisco',90,0,20020109113158,342,00000000000000,-1,1,24,1);
867
INSERT INTO t2 VALUES (650,'San Francisco',90,0,20020109113158,342,NULL,-1,1,24,1);
868
868
INSERT INTO t2 VALUES (333,'tubs',99,2,20020109113453,501,20020109113453,500,3,10,0);
869
869
select * from t1;
870
870
number cname carrier_id privacy last_mod_date last_mod_id last_app_date last_app_id version assigned_scps status
871
4077711111 SeanWheeler 90 2 2002-01-11 11:28:46 500 0000-00-00 00:00:00 -1 2 3 1
871
4077711111 SeanWheeler 90 2 2002-01-11 11:28:46 500 NULL -1 2 3 1
872
872
9197722223 berry 90 3 2002-01-11 11:28:09 500 2002-01-02 11:45:32 501 4 10 0
873
650 San Francisco 0 0 2001-12-27 11:13:36 342 0000-00-00 00:00:00 -1 1 24 1
873
650 San Francisco 0 0 2001-12-27 11:13:36 342 NULL -1 1 24 1
874
874
302467 Sue's Subshop 90 3 2002-01-09 11:32:41 500 2002-01-02 11:51:11 501 7 24 0
875
875
6014911113 SudzCarwash 520 1 2002-01-02 11:52:34 500 2002-01-02 11:52:59 501 33 32768 0
876
876
333 tubs 99 2 2002-01-09 11:34:40 501 2002-01-09 11:34:40 500 3 10 0
877
877
select * from t2;
878
878
number cname carrier_id privacy last_mod_date last_mod_id last_app_date last_app_id version assigned_scps status
879
4077711111 SeanWheeler 0 2 2002-01-11 11:28:53 500 0000-00-00 00:00:00 -1 2 3 1
879
4077711111 SeanWheeler 0 2 2002-01-11 11:28:53 500 NULL -1 2 3 1
880
880
9197722223 berry 90 3 2002-01-11 11:28:18 500 2002-01-02 11:45:32 501 4 10 0
881
650 San Francisco 90 0 2002-01-09 11:31:58 342 0000-00-00 00:00:00 -1 1 24 1
881
650 San Francisco 90 0 2002-01-09 11:31:58 342 NULL -1 1 24 1
882
882
333 tubs 99 2 2002-01-09 11:34:53 501 2002-01-09 11:34:53 500 3 10 0
883
883
delete t1, t2 from t1 left join t2 on t1.number=t2.number where (t1.carrier_id=90 and t1.number=t2.number) or (t2.carrier_id=90 and t1.number=t2.number) or (t1.carrier_id=90 and t2.number is null);
884
884
select * from t1;
1175
1175
(stamp))ENGINE=MyISAM;
1176
1176
insert into t1 values (1),(2),(3);
1177
1177
insert into t2 values (1, 20020204130000),(2, 20020204130000),(4,20020204310000 ),(5,20020204230000);
1178
ERROR 22007: Incorrect datetime value: '20020204310000' for column 'stamp' at row 3
1178
ERROR HY000: Received an invalid value '20020204310000' for a UNIX timestamp.
1179
1179
SELECT col1 FROM t1 UNION SELECT col1 FROM t2 WHERE stamp <
1180
1180
'20020204120000' GROUP BY col1;