CreateTable - sqlite

来源:互联网 发布:淘宝怎么搜二手 编辑:程序博客网 时间:2024/04/30 11:40

relation functions in sqlite::

sqlite3AddColumn

case 37: /* columnid ::= nm */

{
  sqlite3AddColumn(pParse,&yymsp[0].minor.yy0);
  yygotominor.yy0 = yymsp[0].minor.yy0;
}



struct yyStackEntry {
  YYACTIONTYPE stateno;  /* The state-number */
  YYCODETYPE major;      /* The major token value.  This is the code
                         ** number for the token at this stack level */
  YYMINORTYPE minor;     /* The user-supplied minor token value.  This
                         ** is the value of the token  */
};


sqlite3CreateIndex


sqlite3NestedParse(pParse, 
        "INSERT INTO %Q.%s VALUES('index',%Q,%Q,#%d,%Q);",
        db->aDb[iDb].zName, SCHEMA_TABLE(iDb),
        pIndex->zName,
        pTab->zName,
        iMem,
        zStmt
    );



#ifndef XWANG_DBG
printf("\n %s\n", "In sqlite3AddPrimaryKey");
#endif

0 0