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

📄 test007.ksh

📁 b树实现源码,linux和unix下运行,速度快,极好用
💻 KSH
字号:
#!/bin/sh# TestCase:# check pages used(normal and merged) and chunks used for user database# for i = 1 to 100#    create table t1 with two fields and index on first field#    create index idx1 on t1 (f1)#    drop table t1# end for# check pages used(normal and merged) and chunks used for user database#Run this test only under csql/test or on this directory.#Otherwise, it may failEXECUTABLE=${PWD}/system/Allocator/createREL_PATH=.if [ -s "$EXECUTABLE" ]then    REL_PATH=${PWD}/system/Allocatorfiecho "Case 1: -d option with no table"$CSQL_INSTALL_ROOT/bin/catalog -u root -p manager -d if [ $? -ne 0 ]then   exit 1;fiecho "Tables and Indexes are created"echo "Case 2: -d option with 1 table"count=100while [ ${count} -gt 0 ]do   count=`expr ${count} - 1`  ${REL_PATH}/create  if [ $? -ne 0 ]  then    echo "create table failed"    exit 100;  fi  ${REL_PATH}/drop  if [ $? -ne 0 ]  then    echo "drop table failed"    exit 100;  fidone$CSQL_INSTALL_ROOT/bin/catalog -u root -p manager -d if [ $? -ne 0 ]then   exit 1;fiexit 0

⌨️ 快捷键说明

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