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

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

?? domain.out

?? PostgreSQL7.4.6 for Linux
?? OUT
字號:
-- Test Comment / Dropcreate domain domaindroptest int4;comment on domain domaindroptest is 'About to drop this..';-- currently this will be disallowedcreate domain basetypetest domaindroptest;ERROR:  "domaindroptest" is not a valid base type for a domaindrop domain domaindroptest;-- this should fail because already gonedrop domain domaindroptest cascade;ERROR:  type "domaindroptest" does not exist-- TEST Domains.create domain domainvarchar varchar(5);create domain domainnumeric numeric(8,2);create domain domainint4 int4;create domain domaintext text;-- Test explicit coercions --- these should succeed (and truncate)SELECT cast('123456' as domainvarchar); domainvarchar --------------- 12345(1 row)SELECT cast('12345' as domainvarchar); domainvarchar --------------- 12345(1 row)-- Test tables using domainscreate table basictest           ( testint4 domainint4           , testtext domaintext           , testvarchar domainvarchar           , testnumeric domainnumeric           );INSERT INTO basictest values ('88', 'haha', 'short', '123.12');      -- GoodINSERT INTO basictest values ('88', 'haha', 'short text', '123.12'); -- Bad varcharERROR:  value too long for type character varying(5)INSERT INTO basictest values ('88', 'haha', 'short', '123.1212');    -- Truncate numeric-- Test copyCOPY basictest (testvarchar) FROM stdin; -- failERROR:  value too long for type character varying(5)CONTEXT:  COPY basictest, line 1: "notsoshorttext"COPY basictest (testvarchar) FROM stdin;select * from basictest; testint4 | testtext | testvarchar | testnumeric ----------+----------+-------------+-------------       88 | haha     | short       |      123.12       88 | haha     | short       |      123.12          |          | short       |            (3 rows)-- check that domains inherit operations from base typesselect testtext || testvarchar as concat, testnumeric + 42 as sumfrom basictest;  concat   |  sum   -----------+-------- hahashort | 165.12 hahashort | 165.12           |       (3 rows)drop table basictest;drop domain domainvarchar restrict;drop domain domainnumeric restrict;drop domain domainint4 restrict;drop domain domaintext;-- Array Testcreate domain domainint4arr int4[1];create domain domaintextarr text[2][3];create table domarrtest           ( testint4arr domainint4arr           , testtextarr domaintextarr            );INSERT INTO domarrtest values ('{2,2}', '{{"a","b"}{"c","d"}}');INSERT INTO domarrtest values ('{{2,2}{2,2}}', '{{"a","b"}}');INSERT INTO domarrtest values ('{2,2}', '{{"a","b"}{"c","d"}{"e"}}');INSERT INTO domarrtest values ('{2,2}', '{{"a"}{"c"}}');INSERT INTO domarrtest values (NULL, '{{"a","b"}{"c","d","e"}}');select * from domarrtest;  testint4arr  |     testtextarr     ---------------+--------------------- {2,2}         | {{a,c},{"",d}} {{2,2},{0,2}} | {{a,b}} {2,2}         | {{a},{c},{e}} {2,2}         | {{c},{""}}               | {{a,c,""},{"",d,e}}(5 rows)select testint4arr[1], testtextarr[2:2] from domarrtest; testint4arr | testtextarr -------------+-------------           2 | {{"",d}}             |            2 | {{c}}           2 | {{""}}             | {{"",d,e}}(5 rows)drop table domarrtest;drop domain domainint4arr restrict;drop domain domaintextarr restrict;create domain dnotnull varchar(15) NOT NULL;create domain dnull    varchar(15);create domain dcheck   varchar(15) NOT NULL CHECK (VALUE = 'a' OR VALUE = 'c' OR VALUE = 'd');create table nulltest           ( col1 dnotnull           , col2 dnotnull NULL  -- NOT NULL in the domain cannot be overridden           , col3 dnull    NOT NULL           , col4 dnull           , col5 dcheck CHECK (col5 IN ('c', 'd'))           );INSERT INTO nulltest DEFAULT VALUES;ERROR:  domain dnotnull does not allow null valuesINSERT INTO nulltest values ('a', 'b', 'c', 'd', 'c');  -- Goodinsert into nulltest values ('a', 'b', 'c', 'd', NULL);ERROR:  domain dcheck does not allow null valuesinsert into nulltest values ('a', 'b', 'c', 'd', 'a');ERROR:  new row for relation "nulltest" violates check constraint "nulltest_col5"INSERT INTO nulltest values (NULL, 'b', 'c', 'd', 'd');ERROR:  domain dnotnull does not allow null valuesINSERT INTO nulltest values ('a', NULL, 'c', 'd', 'c');ERROR:  domain dnotnull does not allow null valuesINSERT INTO nulltest values ('a', 'b', NULL, 'd', 'c');ERROR:  null value in column "col3" violates not-null constraintINSERT INTO nulltest values ('a', 'b', 'c', NULL, 'd'); -- Good-- Test copyCOPY nulltest FROM stdin; --failERROR:  domain dcheck does not allow null valuesCONTEXT:  COPY nulltest, line 1: "a	b	\N	d	\N"-- Last row is badCOPY nulltest FROM stdin;ERROR:  new row for relation "nulltest" violates check constraint "nulltest_col5"CONTEXT:  COPY nulltest, line 3: "a	b	c	\N	a"select * from nulltest; col1 | col2 | col3 | col4 | col5 ------+------+------+------+------ a    | b    | c    | d    | c a    | b    | c    |      | d(2 rows)-- Test out coerced (casted) constraintsSELECT cast('1' as dnotnull); dnotnull ---------- 1(1 row)SELECT cast(NULL as dnotnull); -- failERROR:  domain dnotnull does not allow null valuesSELECT cast(cast(NULL as dnull) as dnotnull); -- failERROR:  domain dnotnull does not allow null valuesSELECT cast(col4 as dnotnull) from nulltest; -- failERROR:  domain dnotnull does not allow null values-- cleanupdrop table nulltest;drop domain dnotnull restrict;drop domain dnull restrict;drop domain dcheck restrict;create domain ddef1 int4 DEFAULT 3;create domain ddef2 oid DEFAULT '12';-- Type mixing, function returns int8create domain ddef3 text DEFAULT 5;create sequence ddef4_seq;create domain ddef4 int4 DEFAULT nextval(cast('ddef4_seq' as text));create domain ddef5 numeric(8,2) NOT NULL DEFAULT '12.12';create table defaulttest            ( col1 ddef1            , col2 ddef2            , col3 ddef3            , col4 ddef4 PRIMARY KEY            , col5 ddef1 NOT NULL DEFAULT NULL            , col6 ddef2 DEFAULT '88'            , col7 ddef4 DEFAULT 8000            , col8 ddef5            );NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "defaulttest_pkey" for table "defaulttest"insert into defaulttest default values;insert into defaulttest default values;insert into defaulttest default values;-- Test defaults with copyCOPY defaulttest(col5) FROM stdin;select * from defaulttest; col1 | col2 | col3 | col4 | col5 | col6 | col7 | col8  ------+------+------+------+------+------+------+-------    3 |   12 | 5    |    1 |    3 |   88 | 8000 | 12.12    3 |   12 | 5    |    2 |    3 |   88 | 8000 | 12.12    3 |   12 | 5    |    3 |    3 |   88 | 8000 | 12.12    3 |   12 | 5    |    4 |   42 |   88 | 8000 | 12.12(4 rows)drop sequence ddef4_seq;drop table defaulttest cascade;-- Test ALTER DOMAIN .. NOT NULLcreate domain dnotnulltest integer;create table domnotnull( col1 dnotnulltest, col2 dnotnulltest);insert into domnotnull default values;alter domain dnotnulltest set not null; -- failsERROR:  column "col1" of table "domnotnull" contains null valuesupdate domnotnull set col1 = 5;alter domain dnotnulltest set not null; -- failsERROR:  column "col2" of table "domnotnull" contains null valuesupdate domnotnull set col2 = 6;alter domain dnotnulltest set not null;update domnotnull set col1 = null; -- failsERROR:  domain dnotnulltest does not allow null valuesalter domain dnotnulltest drop not null;update domnotnull set col1 = null;drop domain dnotnulltest cascade;NOTICE:  drop cascades to table domnotnull column col2NOTICE:  drop cascades to table domnotnull column col1-- Test ALTER DOMAIN .. DEFAULT ..create table domdeftest (col1 ddef1);insert into domdeftest default values;select * from domdeftest; col1 ------    3(1 row)alter domain ddef1 set default '42';insert into domdeftest default values;select * from domdeftest; col1 ------    3   42(2 rows)alter domain ddef1 drop default;insert into domdeftest default values;select * from domdeftest; col1 ------    3   42     (3 rows)drop table domdeftest;-- Test ALTER DOMAIN .. CONSTRAINT ..create domain con as integer;create table domcontest (col1 con);insert into domcontest values (1);insert into domcontest values (2);alter domain con add constraint t check (VALUE < 1); -- failsERROR:  column "col1" of table "domcontest" contains values that violate the new constraintalter domain con add constraint t check (VALUE < 34);alter domain con add check (VALUE > 0);insert into domcontest values (-5); -- failsERROR:  value for domain con violates check constraint "$1"insert into domcontest values (42); -- failsERROR:  value for domain con violates check constraint "t"insert into domcontest values (5);alter domain con drop constraint t;insert into domcontest values (-5); --failsERROR:  value for domain con violates check constraint "$1"insert into domcontest values (42);-- Confirm ALTER DOMAIN with RULES.create table domtab (col1 integer);create domain dom as integer;create view domview as select cast(col1 as dom) from domtab;insert into domtab (col1) values (null);insert into domtab (col1) values (5);select * from domview; col1 ------         5(2 rows)alter domain dom set not null;select * from domview; -- failERROR:  domain dom does not allow null valuesalter domain dom drop not null;select * from domview; col1 ------         5(2 rows)alter domain dom add constraint domchkgt6 check(value > 6);select * from domview; --failERROR:  value for domain dom violates check constraint "domchkgt6"alter domain dom drop constraint domchkgt6 restrict;select * from domview; col1 ------         5(2 rows)-- cleanupdrop domain ddef1 restrict;drop domain ddef2 restrict;drop domain ddef3 restrict;drop domain ddef4 restrict;drop domain ddef5 restrict;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人精品一区| 久久久久97国产精华液好用吗| 日韩一区在线播放| www.视频一区| 亚洲视频综合在线| 日本乱码高清不卡字幕| 亚洲国产精品影院| 91精品麻豆日日躁夜夜躁| 日韩福利电影在线| 欧美tk丨vk视频| av亚洲精华国产精华| 亚洲综合区在线| 91精品啪在线观看国产60岁| 麻豆91精品91久久久的内涵| 亚洲精品一区二区在线观看| 成人av动漫在线| 亚洲高清视频中文字幕| 精品国产免费人成在线观看| 不卡高清视频专区| 亚洲观看高清完整版在线观看| 日韩一区二区三区电影在线观看| 国产一区二区三区观看| 亚洲美女区一区| 91精品在线观看入口| 北条麻妃一区二区三区| 三级精品在线观看| 国产精品沙发午睡系列990531| 日本高清无吗v一区| 久久爱另类一区二区小说| 中文字幕一区二区日韩精品绯色| 欧美日韩国产影片| 成人亚洲一区二区一| 婷婷六月综合亚洲| 国产精品区一区二区三区| 91精品在线麻豆| 色偷偷久久人人79超碰人人澡| 久久国产剧场电影| 亚洲综合另类小说| 国产精品三级av| 精品福利在线导航| 在线欧美小视频| 成人av一区二区三区| 麻豆91精品视频| 午夜欧美一区二区三区在线播放| 国产精品嫩草影院com| 欧美成人vr18sexvr| 欧美色综合网站| 99久久精品免费| 国产经典欧美精品| 精品系列免费在线观看| 亚洲一区自拍偷拍| 亚洲日韩欧美一区二区在线| 久久久国际精品| 欧美电视剧在线看免费| 欧美伦理影视网| 欧美综合天天夜夜久久| 99久久久无码国产精品| 国产精品66部| 国产麻豆视频一区| 精品系列免费在线观看| 免费高清成人在线| 日韩精品电影在线观看| 亚洲一级二级三级| 一区二区三区高清不卡| 亚洲激情第一区| 亚洲欧美视频在线观看视频| 中文一区一区三区高中清不卡| 欧美精品一区二区久久久| 日韩免费观看2025年上映的电影| 6080亚洲精品一区二区| 欧美日韩国产综合久久| 337p亚洲精品色噜噜| 欧美视频在线一区二区三区| 在线精品视频免费观看| 91久久线看在观草草青青| 日本电影亚洲天堂一区| 欧美视频在线观看一区| 色素色在线综合| 欧美日韩一区二区在线视频| 欧美性猛交xxxx黑人交| 欧美色区777第一页| 欧美日韩一级片网站| 69精品人人人人| 欧美大黄免费观看| 337p日本欧洲亚洲大胆精品| 久久这里只有精品首页| 国产偷国产偷精品高清尤物 | 欧美伦理影视网| 69av一区二区三区| 26uuuu精品一区二区| 国产日韩欧美电影| **欧美大码日韩| 一区二区三区四区亚洲| 天天综合天天综合色| 久久成人免费电影| 不卡高清视频专区| 在线观看亚洲一区| 日韩一区二区三区观看| 中文字幕免费一区| 亚洲女人小视频在线观看| 亚洲网友自拍偷拍| 蜜臀久久99精品久久久久宅男| 韩国三级在线一区| 成人免费高清在线| 欧美视频一二三区| 久久久亚洲国产美女国产盗摄| 国产精品国产a| 亚洲午夜精品网| 久久av中文字幕片| av激情综合网| 欧美肥妇毛茸茸| 国产欧美一区二区精品性| 亚洲精品久久久蜜桃| 麻豆一区二区在线| 国产99久久久国产精品| 欧美日韩久久一区| 国产亚洲成aⅴ人片在线观看| 一区二区三区日本| 看片网站欧美日韩| 91国偷自产一区二区开放时间| 亚洲人成在线观看一区二区| 亚洲一区在线观看视频| 国产在线精品视频| 欧美日韩精品一区二区在线播放| 国产色产综合产在线视频| 亚洲一二三级电影| 成人白浆超碰人人人人| 日韩欧美国产精品一区| 一区二区三区欧美久久| 国产乱理伦片在线观看夜一区| 欧美日韩视频在线第一区| 国产精品区一区二区三| 久久国产精品一区二区| 欧美四级电影在线观看| 国产精品国产三级国产| 国产一区二区精品久久99| 678五月天丁香亚洲综合网| 亚洲视频免费在线观看| 成人一区在线观看| 精品久久国产97色综合| 亚洲r级在线视频| 色噜噜狠狠成人中文综合| 国产清纯在线一区二区www| 蜜臀99久久精品久久久久久软件| 色偷偷成人一区二区三区91| 国产精品乱码久久久久久| 狠狠色狠狠色综合系列| 欧美一卡在线观看| 亚洲国产欧美另类丝袜| 色综合天天综合| 中文字幕av一区二区三区高| 国产精品88av| 国产日韩在线不卡| 国产精品一区久久久久| 久久影院视频免费| 紧缚奴在线一区二区三区| 日韩欧美久久久| 久久国产精品色婷婷| 日韩视频免费观看高清完整版在线观看 | 91影院在线免费观看| 久久久久九九视频| 久久电影国产免费久久电影 | 91免费在线视频观看| 国产精品剧情在线亚洲| 国产69精品久久久久毛片| 26uuu国产电影一区二区| 极品少妇xxxx精品少妇偷拍| 精品国偷自产国产一区| 老司机精品视频导航| 日韩欧美国产一二三区| 六月婷婷色综合| 欧美精品一区二区三区一线天视频 | 亚洲欧美激情插| 91丨九色丨尤物| 亚洲一区免费观看| 欧美色手机在线观看| 日本不卡的三区四区五区| 日韩免费性生活视频播放| 国产伦理精品不卡| 亚洲国产高清不卡| 国产一区二区在线观看免费| 成av人片一区二区| 国产精品一区二区免费不卡| 国产成人在线视频网址| 欧美高清一级片在线观看| 懂色av一区二区在线播放| 中文字幕av一区 二区| 久久久久久免费| 国产69精品久久久久毛片| 亚洲人成精品久久久久久 | 美女网站在线免费欧美精品| 欧美精品一区二区三区很污很色的| 国产一区二区女| 综合激情成人伊人| 欧美男人的天堂一二区| 激情欧美一区二区三区在线观看| 国产欧美日韩在线视频| 91蜜桃免费观看视频| 日本色综合中文字幕| 国产人成一区二区三区影院|