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

📄 vtab9.test

📁 轻量级数据库软件,嵌入式设计可以考虑考虑,性能不错
💻 TEST
字号:
# 2006 August 29## 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 inserting into virtual tables from a SELECT# statement.## $Id: vtab9.test,v 1.1 2006/08/29 18:46:14 drh Exp $set testdir [file dirname $argv0]source $testdir/tester.tclifcapable !vtab {  finish_test  return}do_test vtab9-1.1 {  register_echo_module [sqlite3_connection_pointer db]  execsql {    CREATE TABLE t0(a);    CREATE VIRTUAL TABLE t1 USING echo(t0);    INSERT INTO t1 SELECT 'hello';    SELECT rowid, * FROM t1;  }} {1 hello}do_test vtab9-1.2 {  execsql {    CREATE TABLE t2(a,b,c);    CREATE VIRTUAL TABLE t3 USING echo(t2);    CREATE TABLE d1(a,b,c);    INSERT INTO d1 VALUES(1,2,3);    INSERT INTO d1 VALUES('a','b','c');    INSERT INTO d1 VALUES(NULL,'x',123.456);    INSERT INTO d1 VALUES(x'6869',123456789,-12345);    INSERT INTO t3(a,b,c) SELECT * FROM d1;    SELECT rowid, * FROM t3;  }} {1 1 2 3 2 a b c 3 {} x 123.456 4 hi 123456789 -12345}unset -nocomplain echo_module_begin_failfinish_test

⌨️ 快捷键说明

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