-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMiniSQL.h
More file actions
49 lines (43 loc) · 824 Bytes
/
Copy pathMiniSQL.h
File metadata and controls
49 lines (43 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#if !defined(_MINISQL_H_)
#define _MINISQL_H_
#include<iostream>
#include<afx.h>
#include<stdlib.h>
#include<math.h>
#include<direct.h>
#define FILE_COUNTER 1
#define FILE_INFO_LENGTH 671
#define ATTR_INFO_LENGTH 20
#define FILE_HEAD_LENGTH 31
//定义表的索引节点信息
struct index_info
{
string index_name;
int length;
char type;
long offset;
string value;
};
//定义delete 语句的条件信息
struct condition_info
{
char left_type;
int left_len;
long left_offset;
string left_index_name;
char right_type;
int right_len;
long right_offset;
string right_index_name;
string const_data;
string condition;
};
//定义select 语句显示各属性信息
struct attr_info
{
string attr_name;
int offset;
int length;
char type;
};
#endif