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

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

?? insert.test

?? sqlite庫
?? TEST
字號:
# 2001 September 15## The author disclaims copyright to this source code.  In place of# a legal notice, here is a blessing:##    May you do good and not evil.#    May you find forgiveness for yourself and forgive others.#    May you share freely, never taking more than you give.##***********************************************************************# This file implements regression tests for SQLite library.  The# focus of this file is testing the INSERT statement.## $Id: insert.test,v 1.29 2006/01/17 09:35:02 danielk1977 Exp $set testdir [file dirname $argv0]source $testdir/tester.tcl# Try to insert into a non-existant table.#do_test insert-1.1 {  set v [catch {execsql {INSERT INTO test1 VALUES(1,2,3)}} msg]  lappend v $msg} {1 {no such table: test1}}# Try to insert into sqlite_master#do_test insert-1.2 {  set v [catch {execsql {INSERT INTO sqlite_master VALUES(1,2,3,4)}} msg]  lappend v $msg} {1 {table sqlite_master may not be modified}}# Try to insert the wrong number of entries.#do_test insert-1.3 {  execsql {CREATE TABLE test1(one int, two int, three int)}  set v [catch {execsql {INSERT INTO test1 VALUES(1,2)}} msg]  lappend v $msg} {1 {table test1 has 3 columns but 2 values were supplied}}do_test insert-1.3b {  set v [catch {execsql {INSERT INTO test1 VALUES(1,2,3,4)}} msg]  lappend v $msg} {1 {table test1 has 3 columns but 4 values were supplied}}do_test insert-1.3c {  set v [catch {execsql {INSERT INTO test1(one,two) VALUES(1,2,3,4)}} msg]  lappend v $msg} {1 {4 values for 2 columns}}do_test insert-1.3d {  set v [catch {execsql {INSERT INTO test1(one,two) VALUES(1)}} msg]  lappend v $msg} {1 {1 values for 2 columns}}# Try to insert into a non-existant column of a table.#do_test insert-1.4 {  set v [catch {execsql {INSERT INTO test1(one,four) VALUES(1,2)}} msg]  lappend v $msg} {1 {table test1 has no column named four}}# Make sure the inserts actually happen#do_test insert-1.5 {  execsql {INSERT INTO test1 VALUES(1,2,3)}  execsql {SELECT * FROM test1}} {1 2 3}do_test insert-1.5b {  execsql {INSERT INTO test1 VALUES(4,5,6)}  execsql {SELECT * FROM test1 ORDER BY one}} {1 2 3 4 5 6}do_test insert-1.5c {  execsql {INSERT INTO test1 VALUES(7,8,9)}  execsql {SELECT * FROM test1 ORDER BY one}} {1 2 3 4 5 6 7 8 9}do_test insert-1.6 {  execsql {DELETE FROM test1}  execsql {INSERT INTO test1(one,two) VALUES(1,2)}  execsql {SELECT * FROM test1 ORDER BY one}} {1 2 {}}do_test insert-1.6b {  execsql {INSERT INTO test1(two,three) VALUES(5,6)}  execsql {SELECT * FROM test1 ORDER BY one}} {{} 5 6 1 2 {}}do_test insert-1.6c {  execsql {INSERT INTO test1(three,one) VALUES(7,8)}  execsql {SELECT * FROM test1 ORDER BY one}} {{} 5 6 1 2 {} 8 {} 7}# A table to use for testing default values#do_test insert-2.1 {  execsql {    CREATE TABLE test2(      f1 int default -111,       f2 real default +4.32,      f3 int default +222,      f4 int default 7.89    )  }  execsql {SELECT * from test2}} {}do_test insert-2.2 {  execsql {INSERT INTO test2(f1,f3) VALUES(+10,-10)}  execsql {SELECT * FROM test2}} {10 4.32 -10 7.89}do_test insert-2.3 {  execsql {INSERT INTO test2(f2,f4) VALUES(1.23,-3.45)}  execsql {SELECT * FROM test2 WHERE f1==-111}} {-111 1.23 222 -3.45}do_test insert-2.4 {  execsql {INSERT INTO test2(f1,f2,f4) VALUES(77,+1.23,3.45)}  execsql {SELECT * FROM test2 WHERE f1==77}} {77 1.23 222 3.45}do_test insert-2.10 {  execsql {    DROP TABLE test2;    CREATE TABLE test2(      f1 int default 111,       f2 real default -4.32,      f3 text default hi,      f4 text default 'abc-123',      f5 varchar(10)    )  }  execsql {SELECT * from test2}} {}do_test insert-2.11 {  execsql {INSERT INTO test2(f2,f4) VALUES(-2.22,'hi!')}  execsql {SELECT * FROM test2}} {111 -2.22 hi hi! {}}do_test insert-2.12 {  execsql {INSERT INTO test2(f1,f5) VALUES(1,'xyzzy')}  execsql {SELECT * FROM test2 ORDER BY f1}} {1 -4.32 hi abc-123 xyzzy 111 -2.22 hi hi! {}}# Do additional inserts with default values, but this time# on a table that has indices.  In particular we want to verify# that the correct default values are inserted into the indices.#do_test insert-3.1 {  execsql {    DELETE FROM test2;    CREATE INDEX index9 ON test2(f1,f2);    CREATE INDEX indext ON test2(f4,f5);    SELECT * from test2;  }} {}# Update for sqlite3 v3:# Change the 111 to '111' in the following two test cases, because# the default value is being inserted as a string. TODO: It shouldn't be.do_test insert-3.2 {  execsql {INSERT INTO test2(f2,f4) VALUES(-3.33,'hum')}  execsql {SELECT * FROM test2 WHERE f1='111' AND f2=-3.33}} {111 -3.33 hi hum {}}do_test insert-3.3 {  execsql {INSERT INTO test2(f1,f2,f5) VALUES(22,-4.44,'wham')}  execsql {SELECT * FROM test2 WHERE f1='111' AND f2=-3.33}} {111 -3.33 hi hum {}}do_test insert-3.4 {  execsql {SELECT * FROM test2 WHERE f1=22 AND f2=-4.44}} {22 -4.44 hi abc-123 wham}ifcapable {reindex} {  do_test insert-3.5 {    execsql REINDEX  } {}}integrity_check insert-3.5# Test of expressions in the VALUES clause#do_test insert-4.1 {  execsql {    CREATE TABLE t3(a,b,c);    INSERT INTO t3 VALUES(1+2+3,4,5);    SELECT * FROM t3;  }} {6 4 5}do_test insert-4.2 {  ifcapable subquery {    execsql {INSERT INTO t3 VALUES((SELECT max(a) FROM t3)+1,5,6);}  } else {    set maxa [execsql {SELECT max(a) FROM t3}]    execsql "INSERT INTO t3 VALUES($maxa+1,5,6);"  }  execsql {    SELECT * FROM t3 ORDER BY a;  }} {6 4 5 7 5 6}ifcapable subquery {  do_test insert-4.3 {    catchsql {      INSERT INTO t3 VALUES((SELECT max(a) FROM t3)+1,t3.a,6);      SELECT * FROM t3 ORDER BY a;    }  } {1 {no such column: t3.a}}}do_test insert-4.4 {  ifcapable subquery {    execsql {INSERT INTO t3 VALUES((SELECT b FROM t3 WHERE a=0),6,7);}  } else {    set b [execsql {SELECT b FROM t3 WHERE a = 0}]    if {$b==""} {set b NULL}    execsql "INSERT INTO t3 VALUES($b,6,7);"  }  execsql {    SELECT * FROM t3 ORDER BY a;  }} {{} 6 7 6 4 5 7 5 6}do_test insert-4.5 {  execsql {    SELECT b,c FROM t3 WHERE a IS NULL;  }} {6 7}do_test insert-4.6 {  catchsql {    INSERT INTO t3 VALUES(notafunc(2,3),2,3);  }} {1 {no such function: notafunc}}do_test insert-4.7 {  execsql {    INSERT INTO t3 VALUES(min(1,2,3),max(1,2,3),99);    SELECT * FROM t3 WHERE c=99;  }} {1 3 99}# Test the ability to insert from a temporary table into itself.# Ticket #275.#ifcapable tempdb {  do_test insert-5.1 {    execsql {      CREATE TEMP TABLE t4(x);      INSERT INTO t4 VALUES(1);      SELECT * FROM t4;    }  } {1}  do_test insert-5.2 {    execsql {      INSERT INTO t4 SELECT x+1 FROM t4;      SELECT * FROM t4;    }  } {1 2}  ifcapable {explain} {    do_test insert-5.3 {      # verify that a temporary table is used to copy t4 to t4      set x [execsql {        EXPLAIN INSERT INTO t4 SELECT x+2 FROM t4;      }]      expr {[lsearch $x OpenVirtual]>0}    } {1}  }    do_test insert-5.4 {    # Verify that table "test1" begins on page 3.  This should be the same    # page number used by "t4" above.    #    # Update for v3 - the first table now begins on page 2 of each file, not 3.    execsql {      SELECT rootpage FROM sqlite_master WHERE name='test1';    }  } [expr $AUTOVACUUM?3:2]  do_test insert-5.5 {    # Verify that "t4" begins on page 3.    #    # Update for v3 - the first table now begins on page 2 of each file, not 3.    execsql {      SELECT rootpage FROM sqlite_temp_master WHERE name='t4';    }  } {2}  do_test insert-5.6 {    # This should not use an intermediate temporary table.    execsql {      INSERT INTO t4 SELECT one FROM test1 WHERE three=7;      SELECT * FROM t4    }  } {1 2 8}  ifcapable {explain} {    do_test insert-5.7 {      # verify that no temporary table is used to copy test1 to t4      set x [execsql {        EXPLAIN INSERT INTO t4 SELECT one FROM test1;      }]      expr {[lsearch $x OpenTemp]>0}    } {0}  }}# Ticket #334:  REPLACE statement corrupting indices.#ifcapable conflict {  # The REPLACE command is not available if SQLITE_OMIT_CONFLICT is   # defined at compilation time.  do_test insert-6.1 {    execsql {      CREATE TABLE t1(a INTEGER PRIMARY KEY, b UNIQUE);      INSERT INTO t1 VALUES(1,2);      INSERT INTO t1 VALUES(2,3);      SELECT b FROM t1 WHERE b=2;    }  } {2}  do_test insert-6.2 {    execsql {      REPLACE INTO t1 VALUES(1,4);      SELECT b FROM t1 WHERE b=2;    }  } {}  do_test insert-6.3 {    execsql {      UPDATE OR REPLACE t1 SET a=2 WHERE b=4;      SELECT * FROM t1 WHERE b=4;    }  } {2 4}  do_test insert-6.4 {    execsql {      SELECT * FROM t1 WHERE b=3;    }  } {}  ifcapable {reindex} {    do_test insert-6.5 {      execsql REINDEX    } {}  }  do_test insert-6.6 {    execsql {      DROP TABLE t1;    }  } {}}# Test that the special optimization for queries of the form # "SELECT max(x) FROM tbl" where there is an index on tbl(x) works with # INSERT statments.do_test insert-7.1 {  execsql {    CREATE TABLE t1(a);    INSERT INTO t1 VALUES(1);    INSERT INTO t1 VALUES(2);    CREATE INDEX i1 ON t1(a);  }} {}do_test insert-7.2 {  execsql {    INSERT INTO t1 SELECT max(a) FROM t1;  }} {}do_test insert-7.3 {  execsql {    SELECT a FROM t1;  }} {1 2 2}# Ticket #1140:  Check for an infinite loop in the algorithm that tests# to see if the right-hand side of an INSERT...SELECT references the left-hand# side.#ifcapable subquery&&compound {  do_test insert-8.1 {    execsql {      INSERT INTO t3 SELECT * FROM (SELECT * FROM t3 UNION ALL SELECT 1,2,3)    }  } {}}integrity_check insert-99.0finish_test

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品国产精品国产专区不蜜| 国产三级精品视频| 久久久不卡影院| 亚洲综合视频在线| 天天色天天操综合| 国产99久久久久| 床上的激情91.| 色婷婷久久一区二区三区麻豆| 欧美日韩综合色| 中文字幕一区二区视频| 老司机精品视频一区二区三区| 美女在线观看视频一区二区| 91在线看国产| 亚洲视频狠狠干| 国产一区二区三区在线观看免费视频 | 国产福利不卡视频| 91精品国产色综合久久不卡蜜臀 | 国产精品国产三级国产aⅴ无密码| 五月婷婷欧美视频| 97久久超碰国产精品| 久久精品日韩一区二区三区| 国产一区二区女| 久久综合九色综合久久久精品综合 | 国产亚洲欧美激情| 免费观看91视频大全| 丝袜脚交一区二区| 不卡av在线免费观看| 懂色av一区二区夜夜嗨| 粉嫩高潮美女一区二区三区| 国产成人精品免费网站| 日韩国产精品久久久久久亚洲| 欧美浪妇xxxx高跟鞋交| 不卡欧美aaaaa| 久久99久久99| 欧美日韩精品免费观看视频| 日韩综合在线视频| 久久精品一区二区三区av| 一区二区三区免费看视频| 成人精品视频.| 国产欧美一区二区精品仙草咪| 成人福利视频网站| 亚洲精品日韩综合观看成人91| 成人三级伦理片| 中文字幕人成不卡一区| 一区二区成人在线观看| 亚洲欧洲日韩av| 欧美日本不卡视频| 国内精品伊人久久久久影院对白| 国产亚洲成年网址在线观看| 日本韩国视频一区二区| 国产精品大尺度| 欧美日韩黄色一区二区| 国产精品视频yy9299一区| 99这里都是精品| 欧美日韩精品专区| 中文字幕一区二区三区蜜月| 亚洲高清在线视频| 欧美国产乱子伦| 日韩欧美亚洲一区二区| 欧美日韩精品一区二区三区四区| 97超碰欧美中文字幕| 亚洲最新视频在线观看| 成人av网在线| 26uuu精品一区二区在线观看| 国产精品蜜臀在线观看| 久久国产尿小便嘘嘘尿| 综合久久一区二区三区| 欧美性受xxxx黑人xyx性爽| 日韩专区一卡二卡| 久久国产三级精品| 91精品国产日韩91久久久久久| 欧美怡红院视频| 日韩一级完整毛片| 国产传媒一区在线| 国产剧情一区在线| 欧美婷婷六月丁香综合色| 中文字幕在线不卡国产视频| 一本一本久久a久久精品综合麻豆| av激情综合网| 亚洲精品成人少妇| 欧美大胆人体bbbb| 日韩欧美不卡在线观看视频| 欧美军同video69gay| 亚洲天堂免费看| 国产丝袜美腿一区二区三区| 久久色视频免费观看| 精品美女一区二区| 国产精品国模大尺度视频| 亚洲一区二区三区四区的| 另类小说色综合网站| 成人性生交大合| av中文字幕一区| 51午夜精品国产| 国产欧美视频在线观看| 亚洲一二三区在线观看| 精品亚洲aⅴ乱码一区二区三区| 成人免费va视频| ww久久中文字幕| 国产精品天天看| 亚洲女性喷水在线观看一区| 美女mm1313爽爽久久久蜜臀| 91免费看片在线观看| 欧美精品一区二区蜜臀亚洲| 一区二区三区高清在线| 国产精品综合一区二区| 91精品免费在线观看| 亚洲精品网站在线观看| 亚洲精品ww久久久久久p站| 亚洲视频在线观看三级| 视频一区国产视频| 精品福利av导航| 亚洲第一二三四区| 日韩欧美中文字幕制服| 成人18视频日本| 日日夜夜精品视频免费| 中文字幕第一页久久| 欧美一区二区在线不卡| 99久久久久久| 日本91福利区| 亚洲一区二区av在线| 国产午夜精品美女毛片视频| 欧美日韩视频一区二区| 国产+成+人+亚洲欧洲自线| 视频一区二区欧美| 一区二区免费视频| 国产精品妹子av| 国产精品免费aⅴ片在线观看| 91久久精品国产91性色tv | 亚洲成av人片在线观看无码| 久久亚洲捆绑美女| 欧美zozozo| 欧美日韩一区 二区 三区 久久精品| 精品一二三四区| 国产在线播放一区| 韩国欧美一区二区| 美女诱惑一区二区| 亚洲久草在线视频| 有码一区二区三区| 国精品**一区二区三区在线蜜桃| 欧美一区二区日韩一区二区| ...xxx性欧美| 成人免费的视频| 最新国产精品久久精品| 91理论电影在线观看| 裸体健美xxxx欧美裸体表演| 一区在线播放视频| 国产午夜亚洲精品午夜鲁丝片| 日韩一卡二卡三卡国产欧美| 日韩区在线观看| 精品国产伦理网| 国产精品美女久久久久久久久久久 | 麻豆国产精品官网| 丰满岳乱妇一区二区三区| 91在线你懂得| 精品国产亚洲在线| 中文字幕av一区二区三区| 一级特黄大欧美久久久| 天天影视网天天综合色在线播放| 美女诱惑一区二区| 欧美亚洲另类激情小说| 中文字幕一区免费在线观看| 天天色图综合网| www.亚洲精品| 2020国产精品自拍| 日韩激情一区二区| 在线观看日韩高清av| 久久久久久久网| 老司机免费视频一区二区| 欧美午夜精品一区二区三区| 久久久久97国产精华液好用吗| 亚洲国产aⅴ天堂久久| 丰满少妇在线播放bd日韩电影| 欧美精品123区| 亚洲综合一二三区| 成人激情av网| 国产精品久久免费看| 丁香另类激情小说| 欧美韩日一区二区三区| 波多野结衣91| 亚洲婷婷在线视频| 欧美色电影在线| 亚洲五码中文字幕| 欧美区一区二区三区| 爽好多水快深点欧美视频| 欧美中文字幕不卡| 日本乱人伦一区| 国产精品久久久久久久久免费相片| 国内成+人亚洲+欧美+综合在线| 欧美一区二区视频在线观看2020| 亚洲一区二区三区爽爽爽爽爽| 欧美日韩免费一区二区三区| 亚洲午夜精品一区二区三区他趣| 色综合咪咪久久| 国内成人免费视频| 精品国产91亚洲一区二区三区婷婷| 日本亚洲一区二区| 亚洲精品在线电影| voyeur盗摄精品| 亚洲国产精品天堂| 91精品国产综合久久久久久久久久 |