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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? index.test

?? sqlite庫
?? TEST
?? 第 1 頁 / 共 2 頁
字號:
# 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 CREATE INDEX statement.## $Id: index.test,v 1.42 2006/03/29 00:24:07 drh Exp $set testdir [file dirname $argv0]source $testdir/tester.tcl# Create a basic index and verify it is added to sqlite_master#do_test index-1.1 {  execsql {CREATE TABLE test1(f1 int, f2 int, f3 int)}  execsql {CREATE INDEX index1 ON test1(f1)}  execsql {SELECT name FROM sqlite_master WHERE type!='meta' ORDER BY name}} {index1 test1}do_test index-1.1b {  execsql {SELECT name, sql, tbl_name, type FROM sqlite_master            WHERE name='index1'}} {index1 {CREATE INDEX index1 ON test1(f1)} test1 index}do_test index-1.1c {  db close  sqlite3 db test.db  execsql {SELECT name, sql, tbl_name, type FROM sqlite_master            WHERE name='index1'}} {index1 {CREATE INDEX index1 ON test1(f1)} test1 index}do_test index-1.1d {  db close  sqlite3 db test.db  execsql {SELECT name FROM sqlite_master WHERE type!='meta' ORDER BY name}} {index1 test1}# Verify that the index dies with the table#do_test index-1.2 {  execsql {DROP TABLE test1}  execsql {SELECT name FROM sqlite_master WHERE type!='meta' ORDER BY name}} {}# Try adding an index to a table that does not exist#do_test index-2.1 {  set v [catch {execsql {CREATE INDEX index1 ON test1(f1)}} msg]  lappend v $msg} {1 {no such table: main.test1}}# Try adding an index on a column of a table where the table# exists but the column does not.#do_test index-2.1 {  execsql {CREATE TABLE test1(f1 int, f2 int, f3 int)}  set v [catch {execsql {CREATE INDEX index1 ON test1(f4)}} msg]  lappend v $msg} {1 {table test1 has no column named f4}}# Try an index with some columns that match and others that do now.#do_test index-2.2 {  set v [catch {execsql {CREATE INDEX index1 ON test1(f1, f2, f4, f3)}} msg]  execsql {DROP TABLE test1}  lappend v $msg} {1 {table test1 has no column named f4}}# Try creating a bunch of indices on the same table#set r {}for {set i 1} {$i<100} {incr i} {  lappend r [format index%02d $i]}do_test index-3.1 {  execsql {CREATE TABLE test1(f1 int, f2 int, f3 int, f4 int, f5 int)}  for {set i 1} {$i<100} {incr i} {    set sql "CREATE INDEX [format index%02d $i] ON test1(f[expr {($i%5)+1}])"    execsql $sql  }  execsql {SELECT name FROM sqlite_master            WHERE type='index' AND tbl_name='test1'           ORDER BY name}} $rintegrity_check index-3.2.1ifcapable {reindex} {  do_test index-3.2.2 {    execsql REINDEX  } {}}integrity_check index-3.2.3# Verify that all the indices go away when we drop the table.#do_test index-3.3 {  execsql {DROP TABLE test1}  execsql {SELECT name FROM sqlite_master            WHERE type='index' AND tbl_name='test1'           ORDER BY name}} {}# Create a table and insert values into that table.  Then create# an index on that table.  Verify that we can select values# from the table correctly using the index.## Note that the index names "index9" and "indext" are chosen because# they both have the same hash.#do_test index-4.1 {  execsql {CREATE TABLE test1(cnt int, power int)}  for {set i 1} {$i<20} {incr i} {    execsql "INSERT INTO test1 VALUES($i,[expr {int(pow(2,$i))}])"  }  execsql {CREATE INDEX index9 ON test1(cnt)}  execsql {CREATE INDEX indext ON test1(power)}  execsql {SELECT name FROM sqlite_master WHERE type!='meta' ORDER BY name}} {index9 indext test1}do_test index-4.2 {  execsql {SELECT cnt FROM test1 WHERE power=4}} {2}do_test index-4.3 {  execsql {SELECT cnt FROM test1 WHERE power=1024}} {10}do_test index-4.4 {  execsql {SELECT power FROM test1 WHERE cnt=6}} {64}do_test index-4.5 {  execsql {DROP INDEX indext}  execsql {SELECT power FROM test1 WHERE cnt=6}} {64}do_test index-4.6 {  execsql {SELECT cnt FROM test1 WHERE power=1024}} {10}do_test index-4.7 {  execsql {CREATE INDEX indext ON test1(cnt)}  execsql {SELECT power FROM test1 WHERE cnt=6}} {64}do_test index-4.8 {  execsql {SELECT cnt FROM test1 WHERE power=1024}} {10}do_test index-4.9 {  execsql {DROP INDEX index9}  execsql {SELECT power FROM test1 WHERE cnt=6}} {64}do_test index-4.10 {  execsql {SELECT cnt FROM test1 WHERE power=1024}} {10}do_test index-4.11 {  execsql {DROP INDEX indext}  execsql {SELECT power FROM test1 WHERE cnt=6}} {64}do_test index-4.12 {  execsql {SELECT cnt FROM test1 WHERE power=1024}} {10}do_test index-4.13 {  execsql {DROP TABLE test1}  execsql {SELECT name FROM sqlite_master WHERE type!='meta' ORDER BY name}} {}integrity_check index-4.14# Do not allow indices to be added to sqlite_master#do_test index-5.1 {  set v [catch {execsql {CREATE INDEX index1 ON sqlite_master(name)}} msg]  lappend v $msg} {1 {table sqlite_master may not be indexed}}do_test index-5.2 {  execsql {SELECT name FROM sqlite_master WHERE type!='meta'}} {}# Do not allow indices with duplicate names to be added#do_test index-6.1 {  execsql {CREATE TABLE test1(f1 int, f2 int)}  execsql {CREATE TABLE test2(g1 real, g2 real)}  execsql {CREATE INDEX index1 ON test1(f1)}  set v [catch {execsql {CREATE INDEX index1 ON test2(g1)}} msg]  lappend v $msg} {1 {index index1 already exists}}do_test index-6.1.1 {  catchsql {CREATE INDEX [index1] ON test2(g1)}} {1 {index index1 already exists}}do_test index-6.1b {  execsql {SELECT name FROM sqlite_master WHERE type!='meta' ORDER BY name}} {index1 test1 test2}do_test index-6.1c {  catchsql {CREATE INDEX IF NOT EXISTS index1 ON test1(f1)}} {0 {}}do_test index-6.2 {  set v [catch {execsql {CREATE INDEX test1 ON test2(g1)}} msg]  lappend v $msg} {1 {there is already a table named test1}}do_test index-6.2b {  execsql {SELECT name FROM sqlite_master WHERE type!='meta' ORDER BY name}} {index1 test1 test2}do_test index-6.3 {  execsql {DROP TABLE test1}  execsql {DROP TABLE test2}  execsql {SELECT name FROM sqlite_master WHERE type!='meta' ORDER BY name}} {}do_test index-6.4 {  execsql {    CREATE TABLE test1(a,b);    CREATE INDEX index1 ON test1(a);    CREATE INDEX index2 ON test1(b);    CREATE INDEX index3 ON test1(a,b);    DROP TABLE test1;    SELECT name FROM sqlite_master WHERE type!='meta' ORDER BY name;  }} {}integrity_check index-6.5# Create a primary key#do_test index-7.1 {  execsql {CREATE TABLE test1(f1 int, f2 int primary key)}  for {set i 1} {$i<20} {incr i} {    execsql "INSERT INTO test1 VALUES($i,[expr {int(pow(2,$i))}])"  }  execsql {SELECT count(*) FROM test1}} {19}do_test index-7.2 {  execsql {SELECT f1 FROM test1 WHERE f2=65536}} {16}do_test index-7.3 {  execsql {    SELECT name FROM sqlite_master     WHERE type='index' AND tbl_name='test1'  }} {sqlite_autoindex_test1_1}do_test index-7.4 {  execsql {DROP table test1}  execsql {SELECT name FROM sqlite_master WHERE type!='meta'}} {}integrity_check index-7.5# Make sure we cannot drop a non-existant index.#do_test index-8.1 {  set v [catch {execsql {DROP INDEX index1}} msg]  lappend v $msg} {1 {no such index: index1}}# Make sure we don't actually create an index when the EXPLAIN keyword# is used.#do_test index-9.1 {  execsql {CREATE TABLE tab1(a int)}  ifcapable {explain} {    execsql {EXPLAIN CREATE INDEX idx1 ON tab1(a)}  }  execsql {SELECT name FROM sqlite_master WHERE tbl_name='tab1'}} {tab1}do_test index-9.2 {  execsql {CREATE INDEX idx1 ON tab1(a)}  execsql {SELECT name FROM sqlite_master WHERE tbl_name='tab1' ORDER BY name}} {idx1 tab1}integrity_check index-9.3# Allow more than one entry with the same key.#do_test index-10.0 {  execsql {    CREATE TABLE t1(a int, b int);    CREATE INDEX i1 ON t1(a);    INSERT INTO t1 VALUES(1,2);    INSERT INTO t1 VALUES(2,4);    INSERT INTO t1 VALUES(3,8);    INSERT INTO t1 VALUES(1,12);    SELECT b FROM t1 WHERE a=1 ORDER BY b;  }} {2 12}do_test index-10.1 {  execsql {    SELECT b FROM t1 WHERE a=2 ORDER BY b;  }} {4}do_test index-10.2 {  execsql {    DELETE FROM t1 WHERE b=12;    SELECT b FROM t1 WHERE a=1 ORDER BY b;  }} {2}do_test index-10.3 {  execsql {    DELETE FROM t1 WHERE b=2;    SELECT b FROM t1 WHERE a=1 ORDER BY b;  }} {}do_test index-10.4 {  execsql {    DELETE FROM t1;    INSERT INTO t1 VALUES (1,1);    INSERT INTO t1 VALUES (1,2);    INSERT INTO t1 VALUES (1,3);    INSERT INTO t1 VALUES (1,4);    INSERT INTO t1 VALUES (1,5);    INSERT INTO t1 VALUES (1,6);    INSERT INTO t1 VALUES (1,7);    INSERT INTO t1 VALUES (1,8);    INSERT INTO t1 VALUES (1,9);    INSERT INTO t1 VALUES (2,0);    SELECT b FROM t1 WHERE a=1 ORDER BY b;  }} {1 2 3 4 5 6 7 8 9}do_test index-10.5 {  ifcapable subquery {    execsql { DELETE FROM t1 WHERE b IN (2, 4, 6, 8); }  } else {    execsql { DELETE FROM t1 WHERE b = 2 OR b = 4 OR b = 6 OR b = 8; }  }  execsql {    SELECT b FROM t1 WHERE a=1 ORDER BY b;  }} {1 3 5 7 9}do_test index-10.6 {  execsql {    DELETE FROM t1 WHERE b>2;    SELECT b FROM t1 WHERE a=1 ORDER BY b;  }} {1}do_test index-10.7 {  execsql {    DELETE FROM t1 WHERE b=1;    SELECT b FROM t1 WHERE a=1 ORDER BY b;  }} {}do_test index-10.8 {  execsql {    SELECT b FROM t1 ORDER BY b;  }} {0}integrity_check index-10.9# Automatically create an index when we specify a primary key.#do_test index-11.1 {  execsql {    CREATE TABLE t3(      a text,      b int,      c float,      PRIMARY KEY(b)    );  }  for {set i 1} {$i<=50} {incr i} {    execsql "INSERT INTO t3 VALUES('x${i}x',$i,0.$i)"  }  set sqlite_search_count 0  concat [execsql {SELECT c FROM t3 WHERE b==10}] $sqlite_search_count

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99精品偷自拍| 亚洲青青青在线视频| 一区二区日韩av| 国产成人精品免费视频网站| 欧美午夜精品久久久久久超碰| 久久精品亚洲精品国产欧美| 日韩国产欧美在线播放| 欧美综合欧美视频| 久久精品日产第一区二区三区高清版| 国产在线不卡一区| 麻豆一区二区三| 91久久精品网| 亚洲国产精品久久不卡毛片| 一本色道久久综合亚洲精品按摩 | 国产91露脸合集magnet| 26uuu色噜噜精品一区二区| 毛片av一区二区| 欧美一级一区二区| 蜜桃视频免费观看一区| 日韩一级免费观看| 国产呦精品一区二区三区网站| 日韩亚洲欧美在线观看| 国产一区二区三区在线观看精品| 日韩精品在线一区| 国产综合久久久久久鬼色| 欧美精品一区二区在线观看| 经典三级视频一区| 中文字幕精品三区| 一本大道久久a久久综合| 亚洲一区二区精品视频| 欧美性一区二区| 日av在线不卡| 国产亚洲一区字幕| 色老汉av一区二区三区| 日日夜夜精品免费视频| 久久夜色精品国产欧美乱极品| 国产成人三级在线观看| 一区二区免费看| 欧美精品一区在线观看| 日本韩国欧美在线| 狠狠色综合日日| 亚洲蜜臀av乱码久久精品蜜桃| 精品系列免费在线观看| 亚洲三级电影网站| 日韩一区二区三区四区| 99久久国产免费看| 久久超碰97人人做人人爱| 亚洲天堂av老司机| 日韩精品一区二区在线| 在线一区二区三区做爰视频网站| 久久99国产精品免费| 亚洲欧美成人一区二区三区| 久久综合一区二区| 欧美三级欧美一级| 成人涩涩免费视频| 韩国精品免费视频| 日本女人一区二区三区| 亚洲女子a中天字幕| 中文字幕精品—区二区四季| 日韩欧美一区二区免费| 欧美人妖巨大在线| 欧美网站大全在线观看| 一本色道久久综合亚洲91 | 日韩视频在线观看一区二区| 色婷婷综合久久久久中文一区二区| 国产综合色在线| 在线观看国产91| 国产电影一区在线| 国产成a人无v码亚洲福利| 国产一区二区调教| 韩国一区二区三区| 韩国三级中文字幕hd久久精品| 午夜天堂影视香蕉久久| 婷婷综合另类小说色区| 日韩国产精品91| 无码av免费一区二区三区试看 | 91美女片黄在线观看| 99热99精品| 在线视频亚洲一区| 精品视频色一区| 日韩视频国产视频| 久久久国产精华| ●精品国产综合乱码久久久久 | 99精品视频一区二区| 91亚洲精品乱码久久久久久蜜桃| 91国偷自产一区二区三区成为亚洲经典| 色诱亚洲精品久久久久久| 欧美影片第一页| 欧美一卡二卡三卡| 国产亚洲综合在线| 国产精品久久久久永久免费观看 | 久久99精品视频| 国产v日产∨综合v精品视频| 精品国产一区二区三区av性色| 精品国精品国产| 国产精品久久久久久妇女6080| 亚洲欧美成人一区二区三区| 五月天中文字幕一区二区| 国产美女视频91| 欧美性高清videossexo| 精品不卡在线视频| 一区二区三区成人| 精品在线免费视频| 欧美性高清videossexo| 国产欧美综合在线观看第十页| 一区二区三区在线观看国产| 狠狠色狠狠色合久久伊人| 日本丶国产丶欧美色综合| 久久久久亚洲蜜桃| 天堂成人国产精品一区| 色88888久久久久久影院按摩| 久久久精品2019中文字幕之3| 亚洲成av人**亚洲成av**| 99视频一区二区| 国产性色一区二区| 美女国产一区二区| 在线看一区二区| 亚洲欧美日本在线| 成人黄色综合网站| 国产丝袜在线精品| 麻豆精品新av中文字幕| 欧美一区二区免费| 不卡一区在线观看| 久久久久久久久久电影| 激情综合网最新| 精品欧美一区二区三区精品久久| 亚洲国产毛片aaaaa无费看| 色噜噜偷拍精品综合在线| 亚洲日本va在线观看| 91色九色蝌蚪| 亚洲在线免费播放| 欧美日韩一区二区欧美激情| 亚洲综合免费观看高清完整版在线| 北岛玲一区二区三区四区| 一区在线中文字幕| 欧美午夜精品电影| 日本不卡不码高清免费观看| 欧美精品自拍偷拍| 久久国产尿小便嘘嘘| 国产色婷婷亚洲99精品小说| 国产成人免费在线| 国产精品视频免费看| 国产精品123区| 中文字幕一区三区| 欧美久久久久久久久| 国产一区二区视频在线播放| 国产精品第一页第二页第三页| 一本久道久久综合中文字幕 | 在线欧美小视频| 免费观看在线综合色| 国产欧美1区2区3区| 日本精品视频一区二区| 久久国产日韩欧美精品| 亚洲国产精品精华液ab| 在线观看一区二区视频| 国产中文字幕精品| 亚洲欧美韩国综合色| 日韩美女精品在线| 欧美一级生活片| 91一区二区三区在线观看| 久久精品噜噜噜成人88aⅴ| 中文天堂在线一区| 制服丝袜中文字幕一区| 粗大黑人巨茎大战欧美成人| 亚洲成av人在线观看| 国产精品乱码妇女bbbb| 日韩欧美在线影院| 欧美在线观看你懂的| 成人丝袜视频网| 激情深爱一区二区| 丝袜美腿一区二区三区| 亚洲精品伦理在线| 国产精品拍天天在线| 精品国产乱码久久久久久老虎| 色香色香欲天天天影视综合网| 国产一区二区剧情av在线| 奇米影视7777精品一区二区| 亚洲国产成人高清精品| 1024精品合集| 中文字幕在线观看不卡| 日本一区二区三区电影| 亚洲精品一区二区三区影院 | 亚洲伊人色欲综合网| 亚洲欧美综合色| 亚洲私人黄色宅男| 国产精品美女一区二区| 国产清纯在线一区二区www| 日韩一区二区免费在线电影| 久久久不卡影院| 久久免费午夜影院| xfplay精品久久| 国产日产欧美一区| 中文字幕一区不卡| 亚洲美女视频在线观看| ●精品国产综合乱码久久久久| 国产精品美女视频| 一区二区三区免费网站| 国产精品久久看| 91麻豆精品国产自产在线观看一区| 国产成人在线免费观看|