Beispiel #1
0
        private void CreateExpression()
        {
            tokenizer.Match("CREATE");
            tokenizer.Match("TABLE");
            Query           = new CreateTableQuery();
            Query.TableName = tokenizer.Token;
            tokenizer.GetToken();
            tokenizer.Match("(");
            do
            {
                CreateTableQuery.CreateField f = new CreateTableQuery.CreateField();
                f.Name = tokenizer.Token;
                ((CreateTableQuery)Query).Fields.Add(f);
                tokenizer.GetToken();

                if (tokenizer.Token == ",")
                {
                    tokenizer.Match(",");
                }
            } while (tokenizer.Token != ")");

            tokenizer.Match(")");
        }
Beispiel #2
0
        private void CreateExpression()
        {
            tokenizer.Match("CREATE");
            tokenizer.Match("TABLE");
            Query = new CreateTableQuery();
            Query.TableName = tokenizer.Token;
            tokenizer.GetToken();
            tokenizer.Match("(");
            do
            {
                CreateTableQuery.CreateField f = new CreateTableQuery.CreateField();
                f.Name = tokenizer.Token;
                ((CreateTableQuery)Query).Fields.Add(f);
                tokenizer.GetToken();

                if (tokenizer.Token == ",")
                {
                    tokenizer.Match(",");
                }

            } while (tokenizer.Token != ")");

            tokenizer.Match(")");
        }