亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? intersect.sql

?? derby database source code.good for you.
?? SQL
字號:
create table t1( id integer not null primary key, i1 integer, i2 integer, c10 char(10), c30 char(30), tm time);
create table t2( id integer not null primary key, i1 integer, i2 integer, vc20 varchar(20), d double, dt date);
insert into t1(id,i1,i2,c10,c30) values
  (1,1,1,'a','123456789012345678901234567890'),
  (2,1,2,'a','bb'),
  (3,1,3,'b','bb'),
  (4,1,3,'zz','5'),
  (5,null,null,null,'1.0'),
  (6,null,null,null,'a');
insert into t2(id,i1,i2,vc20,d) values
  (1,1,1,'a',1.0),
  (2,1,2,'a',1.1),
  (5,null,null,'12345678901234567890',3),
  (100,1,3,'zz',3),
  (101,1,2,'bb',null),
  (102,5,5,'',null),
  (103,1,3,' a',null),
  (104,1,3,'null',7.4);

-- no duplicates
select id,i1,i2 from t1 intersect select id,i1,i2 from t2 order by id DESC,i1,i2;
select id,i1,i2 from t1 intersect distinct select id,i1,i2 from t2 order by id DESC,i1,i2;
select id,i1,i2 from t1 intersect all select id,i1,i2 from t2 order by 1,2,3;

-- Only specify order by on some columns
select id,i1,i2 from t1 intersect select id,i1,i2 from t2 order by i2, id DESC;
select id,i1,i2 from t1 intersect all select id,i1,i2 from t2 order by 3 DESC, 1;

-- duplicates
select i1,i2 from t1 intersect select i1,i2 from t2 order by 1,2;
select i1,i2 from t1 intersect distinct select i1,i2 from t2 order by 1,2;
select i1,i2 from t1 intersect all select i1,i2 from t2 order by 1,2;

-- right side is empty
select i1,i2 from t1 intersect select i1,i2 from t2 where id = -1;
select i1,i2 from t1 intersect all select i1,i2 from t2 where id = -1;

-- left side is empty
select i1,i2 from t1 where id = -1 intersect all select i1,i2 from t2;

-- check precedence
select i1,i2 from t1 intersect all select i1,i2 from t2 intersect values(5,5),(1,3) order by 1,2;
(select i1,i2 from t1 intersect all select i1,i2 from t2) intersect values(5,5),(1,3) order by 1,2;

values(-1,-1,-1) union select id,i1,i2 from t1 intersect select id,i1,i2 from t2 order by 1,2,3;
select id,i1,i2 from t1 intersect select id,i1,i2 from t2 union values(-1,-1,-1) order by 1,2,3;

-- check conversions
select c10 from t1 intersect select vc20 from t2 order by 1;
select c30 from t1 intersect select vc20 from t2;
select c30 from t1 intersect all select vc20 from t2;

-- check insert intersect into table and intersect without order by
create table r( i1 integer, i2 integer);
insert into r select i1,i2 from t1 intersect select i1,i2 from t2;
select i1,i2 from r order by 1,2;
delete from r;

insert into r select i1,i2 from t1 intersect all select i1,i2 from t2;
select i1,i2 from r order by 1,2;
delete from r;

-- test LOB
create table t3( i1 integer, cl clob(64), bl blob(1M));
insert into t3 values
  (1, cast( 'aa' as clob(64)), cast(X'01' as blob(1M)));
create table t4( i1 integer, cl clob(64), bl blob(1M));
insert into t4 values
  (1, cast( 'aa' as clob(64)), cast(X'01' as blob(1M)));

select cl from t3 intersect select cl from t4 order by 1;

select bl from t3 intersect select bl from t4 order by 1;

-- invalid conversion
select tm from t1 intersect select dt from t2;
select c30 from t1 intersect select d from t2;

-- different number of columns
select i1 from t1 intersect select i1,i2 from t2;

-- ? in select list of intersect
select ? from t1 intersect select i1 from t2;
select i1 from t1 intersect select ? from t2;

-- except tests
select id,i1,i2 from t1 except select id,i1,i2 from t2 order by id,i1,i2;
select id,i1,i2 from t1 except distinct select id,i1,i2 from t2 order by id,i1,i2;
select id,i1,i2 from t1 except all select id,i1,i2 from t2 order by 1 DESC,2,3;
select id,i1,i2 from t2 except select id,i1,i2 from t1 order by 1,2,3;
select id,i1,i2 from t2 except all select id,i1,i2 from t1 order by 1,2,3;

select i1,i2 from t1 except select i1,i2 from t2 order by 1,2;
select i1,i2 from t1 except distinct select i1,i2 from t2 order by 1,2;
select i1,i2 from t1 except all select i1,i2 from t2 order by 1,2;
select i1,i2 from t2 except select i1,i2 from t1 order by 1,2;
select i1,i2 from t2 except all select i1,i2 from t1 order by 1,2;

-- right side is empty
select i1,i2 from t1 except select i1,i2 from t2 where id = -1 order by 1,2;
select i1,i2 from t1 except all select i1,i2 from t2 where id = -1  order by 1,2;

-- left side is empty
select i1,i2 from t1 where id = -1 except select i1,i2 from t2 order by 1,2;
select i1,i2 from t1 where id = -1 except all select i1,i2 from t2 order by 1,2;

-- Check precedence. Union and except have the same precedence. Intersect has higher precedence.
select i1,i2 from t1 except select i1,i2 from t2 intersect values(-1,-1) order by 1,2;
select i1,i2 from t1 except (select i1,i2 from t2 intersect values(-1,-1)) order by 1,2;
select i1,i2 from t2 except select i1,i2 from t1 union values(5,5) order by 1,2;
(select i1,i2 from t2 except select i1,i2 from t1) union values(5,5) order by 1,2;
select i1,i2 from t2 except all select i1,i2 from t1 except select i1,i2 from t1 where id = 3 order by 1,2;
(select i1,i2 from t2 except all select i1,i2 from t1) except select i1,i2 from t1 where id = 3 order by 1,2;

-- check conversions
select c10 from t1 except select vc20 from t2 order by 1;
select c30 from t1 except select vc20 from t2 order by 1;
select c30 from t1 except all select vc20 from t2;

-- check insert except into table and except without order by
insert into r select i1,i2 from t2 except select i1,i2 from t1;
select i1,i2 from r order by 1,2;
delete from r;

insert into r select i1,i2 from t2 except all select i1,i2 from t1;
select i1,i2 from r order by 1,2;
delete from r;

-- test LOB
select cl from t3 except select cl from t4 order by 1;
select bl from t3 except select bl from t4 order by 1;

-- invalid conversion
select tm from t1 except select dt from t2;
select c30 from t1 except select d from t2;

-- different number of columns
select i1 from t1 except select i1,i2 from t2;

-- ? in select list of except
select ? from t1 except select i1 from t2;

-- Invalid order by
select id,i1,i2 from t1 intersect select id,i1,i2 from t2 order by t1.i1;
select id,i1,i2 from t1 except select id,i1,i2 from t2 order by t1.i1;

-- views using intersect and except
create view view_intr_uniq as select id,i1,i2 from t1 intersect select id,i1,i2 from t2;
select * from view_intr_uniq order by 1 DESC,2,3;

create view view_intr_all as select id,i1,i2 from t1 intersect all select id,i1,i2 from t2;
select * from  view_intr_all order by 1,2,3;

create view view_ex_uniq as select id,i1,i2 from t1 except select id,i1,i2 from t2;
select * from view_ex_uniq order by 1,2,3;

create view view_ex_all as select id,i1,i2 from t1 except all select id,i1,i2 from t2;
select * from view_ex_all order by 1 DESC,2,3;

-- intersect joins
select t1.id,t1.i1,t2.i1 from t1 join t2 on t1.id = t2.id
intersect select t1.id,t1.i2,t2.i2 from t1 join t2 on t1.id = t2.id;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日本国产一区| 久久男人中文字幕资源站| 秋霞影院一区二区| 亚洲日本免费电影| 国产三级欧美三级日产三级99 | 天天av天天翘天天综合网| 亚洲一区二区3| 狠狠色综合色综合网络| 欧美大胆人体bbbb| 欧美日韩久久不卡| 91精品国产手机| 欧美一区二区三区四区久久| 7799精品视频| 日韩欧美亚洲国产另类 | 亚洲欧美日韩人成在线播放| 欧美国产一区视频在线观看| 国产精品每日更新| 中文字幕在线观看一区| 亚洲欧美日韩精品久久久久| 亚洲乱码国产乱码精品精98午夜 | 欧美视频一区二区三区| 成人激情文学综合网| 99免费精品在线| 欧美色图激情小说| 日韩视频在线永久播放| wwww国产精品欧美| 国产精品国产三级国产普通话99 | 日韩欧美黄色影院| 中文在线资源观看网站视频免费不卡| 国产精品第一页第二页第三页| 亚洲男人的天堂在线观看| 水蜜桃久久夜色精品一区的特点| 久久国产精品露脸对白| eeuss影院一区二区三区| 欧美日韩国产综合一区二区三区 | 精品亚洲免费视频| 97精品国产露脸对白| 欧美一区二区福利在线| 国产精品成人在线观看| 日韩国产高清在线| 色婷婷国产精品综合在线观看| 91精品国产91久久久久久一区二区| 久久精品欧美日韩| 日韩有码一区二区三区| 97久久超碰国产精品电影| 精品国产污污免费网站入口| 亚洲精品网站在线观看| 国产在线视频一区二区| 欧美日韩免费在线视频| 一色屋精品亚洲香蕉网站| 精品伊人久久久久7777人| 欧美制服丝袜第一页| 欧美极品aⅴ影院| 老司机午夜精品| 欧美日韩亚洲国产综合| 最新热久久免费视频| 国产一区二区在线视频| 欧美一区二区观看视频| 亚洲va韩国va欧美va| 色狠狠色狠狠综合| 亚洲欧洲精品天堂一级| 黑人巨大精品欧美一区| 久久久久高清精品| 日日夜夜免费精品| 欧美影视一区在线| 亚洲最大色网站| aaa亚洲精品| 日韩久久一区二区| 91丨porny丨首页| 亚洲日本在线a| 色婷婷精品久久二区二区蜜臀av| 国产精品久久久一本精品| 国产成人自拍在线| 欧美激情在线一区二区| 成人小视频免费观看| 久久久久久电影| 国产乱码精品一区二区三区忘忧草| 日韩视频免费观看高清完整版| 日韩国产高清影视| 日韩视频不卡中文| 精品一区二区三区免费毛片爱| 91精品国产入口| 激情综合色丁香一区二区| 欧美成人一区二区| 国产精品99久久久久久久vr | 五月天激情综合网| 日韩一区二区视频在线观看| 美腿丝袜在线亚洲一区| 欧美α欧美αv大片| 国产一区二区三区在线观看精品 | 国产激情91久久精品导航| 久久丝袜美腿综合| 92精品国产成人观看免费| 亚洲一区在线免费观看| 在线播放/欧美激情| 国内精品伊人久久久久av影院| 国产色产综合产在线视频| 91蜜桃网址入口| 日韩vs国产vs欧美| 国产色综合久久| 色婷婷综合久久久久中文一区二区 | 欧美精品乱码久久久久久| 日韩综合小视频| 国产日韩高清在线| 在线亚洲精品福利网址导航| 日韩福利电影在线观看| 国产欧美一区二区精品性色超碰| 91麻豆精东视频| 蜜桃av一区二区三区| 国产精品高潮呻吟| 在线电影院国产精品| 岛国精品在线观看| 偷窥少妇高潮呻吟av久久免费| 国产网红主播福利一区二区| 91成人免费网站| 精品一区二区三区久久久| 国产精品人妖ts系列视频| 欧美日韩激情一区二区三区| 成人一区二区视频| 蜜桃精品视频在线| 亚洲一区二区三区在线| 国产午夜精品福利| 欧美成人一区二区三区| 欧美色图免费看| www.亚洲在线| 国产成人在线影院| 久久99精品久久久久久国产越南 | 日韩av网站在线观看| 国产精品久久久久久久第一福利| 欧美一区二区精品在线| 欧美专区日韩专区| 色综合欧美在线视频区| 国产福利精品一区二区| 久久国产精品99精品国产 | 成人激情黄色小说| 国产一区二区免费视频| 日韩电影一区二区三区四区| 亚洲精品久久久蜜桃| 亚洲欧洲成人av每日更新| 久久久久久夜精品精品免费| 日韩视频在线你懂得| 欧美日韩aaaaa| 在线免费观看日韩欧美| 成人一区二区三区视频在线观看| 亚洲一区二区在线免费看| 91小视频在线| 精品一区二区综合| 欧美国产精品久久| 午夜视频久久久久久| 亚洲一区二区三区国产| 综合电影一区二区三区| 国产精品少妇自拍| 久久久国产精华| 国产视频在线观看一区二区三区| xnxx国产精品| 国产亚洲欧美一区在线观看| 久久久久久麻豆| 国产欧美日韩在线观看| 亚洲国产精品av| 国产精品成人免费在线| 亚洲三级在线免费| 一区二区三区成人| 婷婷成人综合网| 麻豆精品一区二区综合av| 韩国毛片一区二区三区| 国产91丝袜在线观看| 99久久99久久免费精品蜜臀| 在线观看视频一区二区| 欧美精品一卡两卡| 2021中文字幕一区亚洲| 国产女主播一区| 亚洲男人的天堂一区二区 | www.欧美.com| 91日韩在线专区| 欧美日韩一区 二区 三区 久久精品| 欧美日韩一区二区三区高清| 欧美一区二区在线视频| 久久久久青草大香线综合精品| 中文字幕在线一区| 日一区二区三区| 丁香激情综合五月| 欧美男生操女生| 国产清纯美女被跳蛋高潮一区二区久久w | 夜夜爽夜夜爽精品视频| 日韩电影在线免费观看| 国产成人av电影免费在线观看| 日本二三区不卡| 欧美精品一区二区三区在线播放| 国产精品久久免费看| 日本午夜一本久久久综合| 在线中文字幕一区| 日韩欧美中文字幕制服| 亚洲欧洲日本在线| 喷水一区二区三区| www.欧美日韩| 精品久久久久久无| 亚洲福利一二三区| 不卡视频一二三| 精品精品欲导航| 亚洲成av人影院|