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

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

?? table.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 TABLE statement.## $Id: table.test,v 1.45 2006/03/29 00:24:07 drh Exp $set testdir [file dirname $argv0]source $testdir/tester.tcl# Create a basic table and verify it is added to sqlite_master#do_test table-1.1 {  execsql {    CREATE TABLE test1 (      one varchar(10),      two text    )  }  execsql {    SELECT sql FROM sqlite_master WHERE type!='meta'  }} {{CREATE TABLE test1 (      one varchar(10),      two text    )}}# Verify the other fields of the sqlite_master file.#do_test table-1.3 {  execsql {SELECT name, tbl_name, type FROM sqlite_master WHERE type!='meta'}} {test1 test1 table}# Close and reopen the database.  Verify that everything is# still the same.#do_test table-1.4 {  db close  sqlite3 db test.db  execsql {SELECT name, tbl_name, type from sqlite_master WHERE type!='meta'}} {test1 test1 table}# Drop the database and make sure it disappears.#do_test table-1.5 {  execsql {DROP TABLE test1}  execsql {SELECT * FROM sqlite_master WHERE type!='meta'}} {}# Close and reopen the database.  Verify that the table is# still gone.#do_test table-1.6 {  db close  sqlite3 db test.db  execsql {SELECT name FROM sqlite_master WHERE type!='meta'}} {}# Repeat the above steps, but this time quote the table name.#do_test table-1.10 {  execsql {CREATE TABLE "create" (f1 int)}  execsql {SELECT name FROM sqlite_master WHERE type!='meta'}} {create}do_test table-1.11 {  execsql {DROP TABLE "create"}  execsql {SELECT name FROM "sqlite_master" WHERE type!='meta'}} {}do_test table-1.12 {  execsql {CREATE TABLE test1("f1 ho" int)}  execsql {SELECT name as "X" FROM sqlite_master WHERE type!='meta'}} {test1}do_test table-1.13 {  execsql {DROP TABLE "TEST1"}  execsql {SELECT name FROM "sqlite_master" WHERE type!='meta'}} {}# Verify that we cannot make two tables with the same name#do_test table-2.1 {  execsql {CREATE TABLE TEST2(one text)}  catchsql {CREATE TABLE test2(two text default 'hi')}} {1 {table test2 already exists}}do_test table-2.1.1 {  catchsql {CREATE TABLE "test2" (two)}} {1 {table "test2" already exists}}do_test table-2.1b {  set v [catch {execsql {CREATE TABLE sqlite_master(two text)}} msg]  lappend v $msg} {1 {object name reserved for internal use: sqlite_master}}do_test table-2.1c {  db close  sqlite3 db test.db  set v [catch {execsql {CREATE TABLE sqlite_master(two text)}} msg]  lappend v $msg} {1 {object name reserved for internal use: sqlite_master}}do_test table-2.1d {  catchsql {CREATE TABLE IF NOT EXISTS test2(x,y)}} {0 {}}do_test table-2.1e {  catchsql {CREATE TABLE IF NOT EXISTS test2(x UNIQUE, y TEXT PRIMARY KEY)}} {0 {}}do_test table-2.1f {  execsql {DROP TABLE test2; SELECT name FROM sqlite_master WHERE type!='meta'}} {}# Verify that we cannot make a table with the same name as an index#do_test table-2.2a {  execsql {CREATE TABLE test2(one text); CREATE INDEX test3 ON test2(one)}  set v [catch {execsql {CREATE TABLE test3(two text)}} msg]  lappend v $msg} {1 {there is already an index named test3}}do_test table-2.2b {  db close  sqlite3 db test.db  set v [catch {execsql {CREATE TABLE test3(two text)}} msg]  lappend v $msg} {1 {there is already an index named test3}}do_test table-2.2c {  execsql {SELECT name FROM sqlite_master WHERE type!='meta' ORDER BY name}} {test2 test3}do_test table-2.2d {  execsql {DROP INDEX test3}  set v [catch {execsql {CREATE TABLE test3(two text)}} msg]  lappend v $msg} {0 {}}do_test table-2.2e {  execsql {SELECT name FROM sqlite_master WHERE type!='meta' ORDER BY name}} {test2 test3}do_test table-2.2f {  execsql {DROP TABLE test2; DROP TABLE test3}  execsql {SELECT name FROM sqlite_master WHERE type!='meta' ORDER BY name}} {}# Create a table with many field names#set big_table \{CREATE TABLE big(  f1 varchar(20),  f2 char(10),  f3 varchar(30) primary key,  f4 text,  f5 text,  f6 text,  f7 text,  f8 text,  f9 text,  f10 text,  f11 text,  f12 text,  f13 text,  f14 text,  f15 text,  f16 text,  f17 text,  f18 text,  f19 text,  f20 text)}do_test table-3.1 {  execsql $big_table  execsql {SELECT sql FROM sqlite_master WHERE type=='table'}} \{$big_table\}do_test table-3.2 {  set v [catch {execsql {CREATE TABLE BIG(xyz foo)}} msg]  lappend v $msg} {1 {table BIG already exists}}do_test table-3.3 {  set v [catch {execsql {CREATE TABLE biG(xyz foo)}} msg]  lappend v $msg} {1 {table biG already exists}}do_test table-3.4 {  set v [catch {execsql {CREATE TABLE bIg(xyz foo)}} msg]  lappend v $msg} {1 {table bIg already exists}}do_test table-3.5 {  db close  sqlite3 db test.db  set v [catch {execsql {CREATE TABLE Big(xyz foo)}} msg]  lappend v $msg} {1 {table Big already exists}}do_test table-3.6 {  execsql {DROP TABLE big}  execsql {SELECT name FROM sqlite_master WHERE type!='meta'}} {}# Try creating large numbers of tables#set r {}for {set i 1} {$i<=100} {incr i} {  lappend r [format test%03d $i]}do_test table-4.1 {  for {set i 1} {$i<=100} {incr i} {    set sql "CREATE TABLE [format test%03d $i] ("    for {set k 1} {$k<$i} {incr k} {      append sql "field$k text,"    }    append sql "last_field text)"    execsql $sql  }  execsql {SELECT name FROM sqlite_master WHERE type!='meta' ORDER BY name}} $rdo_test table-4.1b {  db close  sqlite3 db test.db  execsql {SELECT name FROM sqlite_master WHERE type!='meta' ORDER BY name}} $r# Drop the even numbered tables#set r {}for {set i 1} {$i<=100} {incr i 2} {  lappend r [format test%03d $i]}do_test table-4.2 {  for {set i 2} {$i<=100} {incr i 2} {    # if {$i==38} {execsql {pragma vdbe_trace=on}}    set sql "DROP TABLE [format TEST%03d $i]"    execsql $sql  }  execsql {SELECT name FROM sqlite_master WHERE type!='meta' ORDER BY name}} $r#exit# Drop the odd number tables#do_test table-4.3 {  for {set i 1} {$i<=100} {incr i 2} {    set sql "DROP TABLE [format test%03d $i]"    execsql $sql  }  execsql {SELECT name FROM sqlite_master WHERE type!='meta' ORDER BY name}} {}# Try to drop a table that does not exist#do_test table-5.1.1 {  catchsql {DROP TABLE test009}} {1 {no such table: test009}}do_test table-5.1.2 {  catchsql {DROP TABLE IF EXISTS test009}} {0 {}}# Try to drop sqlite_master#do_test table-5.2 {  catchsql {DROP TABLE IF EXISTS sqlite_master}} {1 {table sqlite_master may not be dropped}}# Make sure an EXPLAIN does not really create a new table#do_test table-5.3 {  ifcapable {explain} {    execsql {EXPLAIN CREATE TABLE test1(f1 int)}  }  execsql {SELECT name FROM sqlite_master WHERE type!='meta'}} {}# Make sure an EXPLAIN does not really drop an existing table#do_test table-5.4 {  execsql {CREATE TABLE test1(f1 int)}  ifcapable {explain} {    execsql {EXPLAIN DROP TABLE test1}  }  execsql {SELECT name FROM sqlite_master WHERE type!='meta'}} {test1}# Create a table with a goofy name##do_test table-6.1 {#  execsql {CREATE TABLE 'Spaces In This Name!'(x int)}#  execsql {INSERT INTO 'spaces in this name!' VALUES(1)}#  set list [glob -nocomplain testdb/spaces*.tbl]#} {testdb/spaces+in+this+name+.tbl}# Try using keywords as table names or column names.# do_test table-7.1 {  set v [catch {execsql {    CREATE TABLE weird(      desc text,      asc text,      key int,      [14_vac] boolean,      fuzzy_dog_12 varchar(10),      begin blob,      end clob    )  }} msg]  lappend v $msg} {0 {}}do_test table-7.2 {  execsql {    INSERT INTO weird VALUES('a','b',9,0,'xyz','hi','y''all');    SELECT * FROM weird;  }} {a b 9 0 xyz hi y'all}do_test table-7.3 {  execsql2 {    SELECT * FROM weird;  }} {desc a asc b key 9 14_vac 0 fuzzy_dog_12 xyz begin hi end y'all}# Try out the CREATE TABLE AS syntax#do_test table-8.1 {  execsql2 {    CREATE TABLE t2 AS SELECT * FROM weird;    SELECT * FROM t2;  }} {desc a asc b key 9 14_vac 0 fuzzy_dog_12 xyz begin hi end y'all}do_test table-8.1.1 {  execsql {    SELECT sql FROM sqlite_master WHERE name='t2';  }} {{CREATE TABLE t2(  "desc" text,  "asc" text,  "key" int,  "14_vac" boolean,  fuzzy_dog_12 varchar(10),  "begin" blob,  "end" clob)}}do_test table-8.2 {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
九九热在线视频观看这里只有精品| 91精品国产综合久久精品麻豆| 色爱区综合激月婷婷| 欧美日韩五月天| 欧美tickle裸体挠脚心vk| 国产亚洲精品资源在线26u| 亚洲免费资源在线播放| 日本成人在线网站| 成年人国产精品| 欧美日韩国产影片| 国产色婷婷亚洲99精品小说| 亚洲女爱视频在线| 麻豆国产91在线播放| 成人精品电影在线观看| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 91免费国产在线| 欧美日韩高清在线播放| wwwwww.欧美系列| 亚洲激情av在线| 国产尤物一区二区在线| 色婷婷精品久久二区二区蜜臀av| 欧美人与禽zozo性伦| 国产午夜一区二区三区| 亚洲国产一区视频| 国产在线日韩欧美| 欧美日韩国产高清一区二区| 国产片一区二区三区| 五月激情六月综合| 成人一区在线看| 欧美一区二区三区在线观看| 亚洲欧洲美洲综合色网| 麻豆91免费看| 欧美性三三影院| 亚洲欧洲国产专区| 九九精品一区二区| 欧美丰满美乳xxx高潮www| 国产精品无码永久免费888| 日韩精品视频网| 色婷婷综合久久久中文一区二区 | 国产福利91精品一区二区三区| 欧美性一区二区| 中文字幕一区二区三区视频| 麻豆精品国产91久久久久久| 欧美日韩一本到| 成人欧美一区二区三区| 国产麻豆视频一区| 97se亚洲国产综合自在线| 精品国产成人在线影院| 一区二区免费在线播放| 国产精品影音先锋| 欧美精品tushy高清| 亚洲图片激情小说| 精东粉嫩av免费一区二区三区 | 亚洲特黄一级片| 日韩中文字幕区一区有砖一区| 国产精品一区二区三区四区| 欧美日本在线视频| 亚洲欧洲99久久| 国产精品夜夜嗨| 91精品国产福利| 亚洲国产另类av| 99re视频精品| 亚洲国产精品成人综合| 久久国产乱子精品免费女| 欧美日韩一区二区三区免费看| 国产亚洲综合性久久久影院| 久久99精品国产91久久来源| 欧美精品免费视频| 一区二区日韩av| 色婷婷av一区二区三区gif| 国产精品美女久久久久av爽李琼 | 久久久久久久国产精品影院| 琪琪久久久久日韩精品| 欧美日韩aaaaaa| 亚洲国产精品久久一线不卡| 欧美最新大片在线看| 亚洲色图第一区| 99久久国产综合精品女不卡| 国产女同互慰高潮91漫画| 国产精品羞羞答答xxdd | 日精品一区二区| 欧美日韩一区 二区 三区 久久精品| 亚洲丝袜美腿综合| 成人国产电影网| 亚洲国产精品成人综合| 成人午夜伦理影院| 日韩精品一区二区三区视频播放| 日本视频在线一区| 欧美在线观看18| 亚洲色图色小说| 日本大香伊一区二区三区| 伊人开心综合网| 欧美亚洲高清一区| 性久久久久久久久久久久| 欧美日精品一区视频| 亚洲午夜电影网| 欧美羞羞免费网站| 爽好久久久欧美精品| 欧美一区二区在线看| 美腿丝袜在线亚洲一区| 日韩欧美一二区| 男女视频一区二区| 久久在线免费观看| 丁香婷婷深情五月亚洲| 亚洲欧洲www| 欧美午夜寂寞影院| 男女激情视频一区| 久久亚洲私人国产精品va媚药| 国产成人一级电影| 中文字幕一区二区三区在线不卡 | 欧美日韩精品久久久| 另类小说欧美激情| 久久久精品tv| 成人avav影音| 亚洲成人久久影院| 日韩美女视频在线| 国产成人亚洲精品青草天美| 国产精品久久久久久久久免费相片| 色综合久久88色综合天天6| 午夜一区二区三区在线观看| 欧美一级高清片| 国内精品久久久久影院薰衣草| 亚洲卡通欧美制服中文| 5月丁香婷婷综合| 国产一区二区不卡在线| 亚洲黄色免费电影| 欧美一级片免费看| 不卡一区二区三区四区| 亚洲成人黄色影院| 久久综合狠狠综合久久激情| 91丝袜美腿高跟国产极品老师| 一个色妞综合视频在线观看| 色综合激情五月| 日本vs亚洲vs韩国一区三区二区| 久久综合给合久久狠狠狠97色69| aaa亚洲精品| 奇米亚洲午夜久久精品| 国产精品国产馆在线真实露脸| 欧美日韩精品免费| 丰满少妇久久久久久久| 亚洲一本大道在线| 久久精品视频一区| 9色porny自拍视频一区二区| 婷婷开心久久网| 国产日韩精品视频一区| 欧美日韩国产小视频| 国产精品亚洲第一| 丝袜国产日韩另类美女| 国产精品免费久久久久| 欧美一区二区女人| 波多野结衣中文一区| 麻豆成人av在线| 国产精品国产三级国产普通话99| 欧美性猛交xxxxxxxx| 成人丝袜高跟foot| 97久久精品人人澡人人爽| 日韩vs国产vs欧美| 亚洲欧洲日韩av| 久久久久成人黄色影片| 欧美精品在线视频| 色综合天天综合网天天狠天天| 日韩精品一卡二卡三卡四卡无卡| 亚洲精品日韩专区silk| 久久先锋影音av| 欧美一区二区三区四区在线观看 | 成人一级片在线观看| 蜜桃久久久久久| 亚洲小少妇裸体bbw| 亚洲人成网站影音先锋播放| 久久久精品国产99久久精品芒果 | 日韩欧美国产高清| 欧洲精品一区二区| 成年人国产精品| 成人久久久精品乱码一区二区三区| 伦理电影国产精品| 午夜av区久久| 亚洲综合在线五月| 成人免费在线观看入口| 欧美国产日韩a欧美在线观看| 欧美成人一区二区三区| 欧美二区在线观看| 91久久精品午夜一区二区| 99riav久久精品riav| 成人丝袜18视频在线观看| 国产一区二区美女诱惑| 久久国产精品99久久人人澡| 午夜精品久久久久影视| 亚洲一区二区欧美日韩| 亚洲乱码国产乱码精品精小说| 国产欧美精品一区二区色综合 | 性做久久久久久免费观看| 亚洲人一二三区| 亚洲欧美中日韩| 国产精品动漫网站| 欧美国产丝袜视频| 中国色在线观看另类| 国产精品麻豆欧美日韩ww| 国产亚洲精品中文字幕| 欧美韩国日本不卡| 亚洲少妇中出一区|