コード例 #1
0
ファイル: Table.cpp プロジェクト: dtracers/SchoolWork
void Table::setPrimaryKey(string colName) {
	
	Column *theCol = findColumn(colName);

	if(theCol == NULL) {
		throw DatabaseException(20, colName + " does not exist.");
	}

	theCol->setPrimary(true);
}