tabexist.cpp

来自「小型数据库源代码较多」· C++ 代码 · 共 13 行

CPP
13
字号

#include "min.h"

Table* sql::tabexist()
{	
	//看表是否存在;存在返回上一张表的地址, 不存在返回NULL
	Table* table;
	for( table = tablehead; table->next; table = table->next )
		if( !strcmp(table->next->name.c_str(), filename.c_str()))
			return table;
	return NULL;
}

⌨️ 快捷键说明

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