-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathSelectNode.h
More file actions
35 lines (27 loc) · 1.01 KB
/
SelectNode.h
File metadata and controls
35 lines (27 loc) · 1.01 KB
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
//
// SeleteNode.h
// SQL parser and interpreter
//
// Created by 王璇 on 17/4/8.
// Copyright © 2017年 Xuan Wang. All rights reserved.
//
#include "ScanTable.h"
#include "MyNode.h"
class SelectNode{
public:
int NAttrsExp; // Number of attrs
char AttrExp[50][100]; // Attribute name
struct MyNode *selectExp[100];// Buffer in ScanTable to get the attr value
int NRels; // Number of relations
char RelName[20][32]; // Relation name (optional, you can use
// the TableName[ ] field in the ScanTable
// to store the Relation Name...
ScanTable *Rel[10]; // ScanTable object for the relation
struct MyNode *where; // Where clause
/* =========================================
The following 2 variables are used by
the optional part of this project
========================================= */
//SELECT *parent; // Parent and Child are used to
//SELECT *child; // implement nested queries
};