⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 attach2.test

📁 SQLite 2.8.6 源代码,用来在Linux/Unix/Windows上编译安装.它是一个小型的数据库,但是非常好用,速度也快,一般的数据库查询之类的操作据统计比MySQL,PostgreSQL
💻 TEST
字号:
# 2003 July 1## 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 script is testing the ATTACH and DETACH commands# and related functionality.## $Id: attach2.test,v 1.2 2003/07/18 01:25:35 drh Exp $#set testdir [file dirname $argv0]source $testdir/tester.tcl# Ticket #354#do_test attach2-1.1 {  db eval {    CREATE TABLE t1(a,b);    CREATE INDEX x1 ON t1(a);  }  file delete -force test2.db  sqlite db2 test2.db  db2 eval {    CREATE TABLE t1(a,b);    CREATE INDEX x1 ON t1(a);  }  catchsql {    ATTACH 'test2.db' AS t2;  }} {0 {}}db closefor {set i 2} {$i<=15} {incr i} {  catch {db$i close}}file delete -force test2.dbfinish_test

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -