relation functions insqlite::
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,#%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
原文链接:https://www.f2er.com/sqlite/200732.html