· 6 years ago · Jul 12, 2019, 12:14 AM
1use tempdb 2go 3 4drop table if exists t 5create table t(id int primary key, tid int not null) 6insert into t(id,tid) values (1,2),(2,1)