📄 update_dictionaty.cpp
字号:
#include "min.h"
void sql::Update_Dictionary()
{
for( int j = 0; j < sbf ; j++)
buf[0][j] = '\0';
ostrstream out( buf[0], sbf );
Table* table;
Table* temp;
Col* col;
Col* tempc;
table = tablehead;
if( table->next != NULL)
{
for( ;table->next ;)
{
temp = table;
table = table->next;
delete temp;
out << setw(10) << table->name
<< setw(5) << table->num
<< setw(5) << table->col ;
col = table->collist;
for(; col->next; )
{
tempc = col;
col = col->next;
delete tempc;
out << '\t';
out << col->name << " " << col->type
<< col->att << col->len << " ";
if ( col->indexname.compare(""))
out << col->indexname << " ";
out << ',';
}
delete col;
out << '\n';
}
out << '&' ;
}
delete table;
//cout << tablehead;
fstream dir_file;
dir_file.open( "dir_file.dtb",ios::out|ios::trunc );
if( dir_file.fail() )
throw 10;
dir_file.write ( buf[0], strlen(buf[0]));
dir_file.close();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -