亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? qsqlquery.cpp

?? QT 開發(fā)環(huán)境里面一個很重要的文件
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
/*!    Returns true if the query is currently positioned on a valid    record; otherwise returns false.*/bool QSqlQuery::isValid() const{    return d->sqlResult->isValid();}/*!    Returns true if the query is currently active; otherwise returns    false.*/bool QSqlQuery::isActive() const{    return d->sqlResult->isActive();}/*!    Returns true if the current query is a \c SELECT statement;    otherwise returns false.*/bool QSqlQuery::isSelect() const{    return d->sqlResult->isSelect();}/*!    Returns true if you can only scroll forward through a result set;    otherwise returns false.    \sa setForwardOnly(), next()*/bool QSqlQuery::isForwardOnly() const{    return d->sqlResult->isForwardOnly();}/*!    Sets forward only mode to \a forward. If \a forward is true, only    next() and seek() with positive values, are allowed for    navigating the results. Forward only mode needs far less memory    since results do not need to be cached.    Forward only mode is off by default.    \sa isForwardOnly(), next(), seek()*/void QSqlQuery::setForwardOnly(bool forward){    d->sqlResult->setForwardOnly(forward);}/*!    Returns a QSqlRecord containing the field information for the    current query. If the query points to a valid row (isValid()    returns true), the record is populated with the row's values.    An empty record is returned when there is no active query    (isActive() returns false).    To retrieve values from a query, value() should be used since    its index-based lookup is faster.    In the following example, a \c{SELECT * FROM} query is executed.    Since the order of the columns is not defined, QSqlRecord::indexOf()    is used to obtain the index of a column.    \code    QSqlQuery q("select * from employees");    QSqlRecord rec = q.record();    qDebug() << "Number of columns: " << rec.count();    int nameCol = rec.indexOf("name"); // index of the field "name"    while (q.next())        qDebug() << q.value(nameCol).toString(); // output all names    \endcode    \sa value()*/QSqlRecord QSqlQuery::record() const{    QSqlRecord rec = d->sqlResult->record();    if (isValid()) {        for (int i = 0; i < rec.count(); ++i)            rec.setValue(i, value(i));    }    return rec;}/*!    Clears the result set and releases any resources held by the    query. You should rarely if ever need to call this function.*/void QSqlQuery::clear(){    *this = QSqlQuery(driver()->createResult());}/*!    Prepares the SQL query \a query for execution. Returns true if the    query is prepared successfully; otherwise returns false.    The query may    contain placeholders for binding values. Both Oracle style    colon-name (e.g., \c{:surname}), and ODBC style (\c{?})    placeholders are supported; but they cannot be mixed in the same    query. See the \l{QSqlQuery examples}{Detailed Description} for examples.    Portability note: Some databases choose to delay preparing a query until    it is executed the first time. In this case, preparing a syntactically wrong    query succeeds, but every consecutive exec() will fail.    \sa exec(), bindValue(), addBindValue()*/bool QSqlQuery::prepare(const QString& query){    if (d->ref != 1) {        bool fo = isForwardOnly();        *this = QSqlQuery(driver()->createResult());        setForwardOnly(fo);    } else {        d->sqlResult->setActive(false);        d->sqlResult->setLastError(QSqlError());        d->sqlResult->setAt(QSql::BeforeFirstRow);    }    if (!driver()) {        qWarning("QSqlQuery::prepare: no driver");        return false;    }    if (!driver()->isOpen() || driver()->isOpenError()) {        qWarning("QSqlQuery::prepare: database not open");        return false;    }    if (query.isEmpty()) {        qWarning("QSqlQuery::prepare: empty query");        return false;    }#ifdef QT_DEBUG_SQL    qDebug("\n QSqlQuery::prepare: %s", query.toLocal8Bit().constData());#endif    return d->sqlResult->savePrepare(query);}/*!    \overload    Executes a previously prepared SQL query. Returns true if the    query executed successfully; otherwise returns false.    \sa prepare() bindValue() addBindValue() boundValue() boundValues()*/bool QSqlQuery::exec(){    d->sqlResult->resetBindCount();    return d->sqlResult->exec();}/*! \enum QSqlQuery::BatchExecutionMode    \value ValuesAsRows - Updates multiple rows. Treats every entry in a QVariantList as a value for updating the next row.    \value ValuesAsColumns - Updates a single row. Treats every entry in a QVariantList as a single value of an array type.*//*!    \since 4.2    Executes a previously prepared SQL query in a batch. All the bound parameters    have to be lists of variants. If the database doesn't support batch executions,    the driver will simulate it using conventional exec() calls.    Returns true if the query is executed successfully; otherwise returns false.    Example:    \code        QSqlQuery q;        q.prepare("insert into myTable values (?, ?)");        QVariantList ints;        ints << 1 << 2 << 3 << 4;        q.addBindValue(ints);        QVariantList names;        names << "Harald" << "Boris" << "Trond" << QVariant(QVariant::String);        q.addBindValue(names);        if (!q.execBatch())            qDebug() << q.lastError();    \endcode    The example above inserts four new rows into \c myTable:    \code        1  Harald        2  Boris        3  Trond        4  NULL    \endcode    To bind NULL values, a null QVariant has to be added to the bound QVariantList,    for example: \c {QVariant(QVariant::String)}    Note that every bound QVariantList must contain the same amount of variants.    Note that the type of the QVariants in a list must not change. For example,    you cannot mix integer and string variants within a QVariantList.    The \a mode parameter indicates how the bound QVariantList will be interpreted.    If \a mode is \c ValuesAsRows, every variant within the QVariantList will be    interpreted as a value for a new row. \c ValuesAsColumns is a special case    for the Oracle driver. In this mode, every entry within a QVariantList will    be interpreted as array-value for an IN or OUT value within a stored procedure.    Note that this will only work if the IN or OUT value is a table-type consisting    of only one column of a basic type, for example    \c{TYPE myType IS TABLE OF VARCHAR(64) INDEX BY BINARY_INTEGER;}    \sa prepare(), bindValue(), addBindValue()*/bool QSqlQuery::execBatch(BatchExecutionMode mode){    return d->sqlResult->execBatch(mode == ValuesAsColumns);}/*!    Set the placeholder \a placeholder to be bound to value \a val in    the prepared statement. Note that the placeholder mark (e.g \c{:})    must be included when specifying the placeholder name. If \a paramType    is QSql::Out or QSql::InOut, the placeholder will be    overwritten with data from the database after the exec() call.    \sa addBindValue(), prepare(), exec(), boundValue() boundValues()*/void QSqlQuery::bindValue(const QString& placeholder, const QVariant& val,                          QSql::ParamType paramType){    d->sqlResult->bindValue(placeholder, val, paramType);}/*!    \overload    Set the placeholder in position \a pos to be bound to value \a val    in the prepared statement. Field numbering starts at 0. If \a paramType    is QSql::Out or QSql::InOut, the placeholder will be    overwritten with data from the database after the exec() call.*/void QSqlQuery::bindValue(int pos, const QVariant& val, QSql::ParamType paramType){    d->sqlResult->bindValue(pos, val, paramType);}/*!    Adds the value \a val to the list of values when using positional    value binding. The order of the addBindValue() calls determines    which placeholder a value will be bound to in the prepared query.    If \a paramType is QSql::Out or QSql::InOut, the placeholder will    be overwritten with data from the database after the exec() call.    \sa bindValue(), prepare(), exec(), boundValue() boundValues()*/void QSqlQuery::addBindValue(const QVariant& val, QSql::ParamType paramType){    d->sqlResult->addBindValue(val, paramType);}/*!    Returns the value for the \a placeholder.    \sa boundValues() bindValue() addBindValue()*/QVariant QSqlQuery::boundValue(const QString& placeholder) const{    return d->sqlResult->boundValue(placeholder);}/*!    \overload    Returns the value for the placeholder at position \a pos.*/QVariant QSqlQuery::boundValue(int pos) const{    return d->sqlResult->boundValue(pos);}/*!    Returns a map of the bound values.    With named binding, the bound values can be examined in the    following ways:    \quotefromfile snippets/sqldatabase/sqldatabase.cpp    \skipto examine with named binding    \skipto QMapIterator    \printuntil }    With positional binding, the code becomes:    \skipto examine with positional binding    \skipto QList    \printuntil endl;    \sa boundValue() bindValue() addBindValue()*/QMap<QString,QVariant> QSqlQuery::boundValues() const{    QMap<QString,QVariant> map;    const QVector<QVariant> values(d->sqlResult->boundValues());    for (int i = 0; i < values.count(); ++i)        map[d->sqlResult->boundValueName(i)] = values.at(i);    return map;}/*!    Returns the last query that was executed.    In most cases this function returns the same string as    lastQuery(). If a prepared query with placeholders is executed on    a DBMS that does not support it, the preparation of this query is    emulated. The placeholders in the original query are replaced with    their bound values to form a new query. This function returns the    modified query. It is mostly useful for debugging purposes.    \sa lastQuery()*/QString QSqlQuery::executedQuery() const{    return d->sqlResult->executedQuery();}/*!    \fn bool QSqlQuery::prev()    Use previous() instead.*//*!    Returns the object ID of the most recent inserted row if the    database supports it.    An invalid QVariant will be returned if the query did not    insert any value or if the database does not report the id back.    If more than one row was touched by the insert, the behavior is    undefined.    \sa QSqlDriver::hasFeature()*/QVariant QSqlQuery::lastInsertId() const{    return d->sqlResult->lastInsertId();}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天堂一区二区在线| 久久九九久久九九| 亚洲影视在线播放| 欧日韩精品视频| 性欧美大战久久久久久久久| 欧美日韩国产小视频| 亚洲成人av电影| 日韩手机在线导航| 国产在线国偷精品产拍免费yy| 久久久久99精品国产片| av午夜精品一区二区三区| 一区二区三区资源| 91精品国产综合久久福利软件 | 国产高清亚洲一区| 国产精品欧美经典| 欧美日韩美女一区二区| 国内精品在线播放| 中文字幕亚洲在| 91精选在线观看| 国产成人综合在线观看| 亚洲一区二区精品视频| 欧美va亚洲va国产综合| www.爱久久.com| 免费在线观看精品| 国产精品天干天干在线综合| 欧美性受xxxx黑人xyx性爽| 久久国产尿小便嘘嘘| 中文字幕一区二区三区在线不卡 | 激情综合亚洲精品| 亚洲啪啪综合av一区二区三区| 91精品在线观看入口| 国产福利一区二区三区视频在线 | 一区二区三区在线免费观看| 日韩欧美国产综合在线一区二区三区| 国产精品18久久久| 丝袜诱惑亚洲看片| √…a在线天堂一区| 精品国产一区二区三区不卡| 色婷婷久久久久swag精品| 精品一区在线看| 一区二区日韩av| 欧美高清在线视频| 欧美一级片在线| 日本精品视频一区二区| 国产成人免费高清| 日韩福利电影在线| 亚洲一区二区三区影院| 国产精品久久久久久久久免费丝袜| 在线成人高清不卡| 91福利精品第一导航| 成人激情综合网站| 国产一区中文字幕| 老司机精品视频一区二区三区| 亚洲欧美日韩中文字幕一区二区三区| 久久人人超碰精品| 91精品麻豆日日躁夜夜躁| 91黄色免费网站| 91小视频在线观看| 成人久久18免费网站麻豆| 国产一区二区看久久| 免费观看久久久4p| 日韩精品亚洲一区| 丝袜美腿亚洲色图| 亚洲国产日韩a在线播放性色| 国产精品三级视频| 久久人人97超碰com| 精品国产1区二区| 久久综合九色欧美综合狠狠| 日韩午夜av电影| 日韩免费福利电影在线观看| 91精品中文字幕一区二区三区| 欧美日韩一区二区三区在线看| 97国产一区二区| 99精品视频在线播放观看| 不卡免费追剧大全电视剧网站| 国产精品99久久久久久似苏梦涵| 国内精品伊人久久久久影院对白| 蜜臀av亚洲一区中文字幕| 日精品一区二区三区| 奇米色一区二区三区四区| 美日韩一区二区| 蜜桃一区二区三区在线| 麻豆成人久久精品二区三区红| 久久不见久久见免费视频7| 精品中文av资源站在线观看| 精品一区二区三区在线观看 | 国产精品国产三级国产专播品爱网| 久久―日本道色综合久久| 国产欧美日韩视频一区二区| 国产日韩欧美精品一区| 最新欧美精品一区二区三区| 亚洲视频免费看| 亚洲国产精品天堂| 日韩成人一区二区| 国精品**一区二区三区在线蜜桃| 国产高清一区日本| 91女厕偷拍女厕偷拍高清| 精品视频全国免费看| 欧美mv日韩mv国产| 国产精品卡一卡二卡三| 亚洲国产综合色| 老司机精品视频线观看86| 国产69精品久久久久毛片| 日本精品裸体写真集在线观看| 69av一区二区三区| 久久综合久久99| 一区二区三区中文字幕| 免费成人你懂的| 成人av在线电影| 欧美蜜桃一区二区三区| 久久蜜桃av一区二区天堂 | 国产999精品久久久久久绿帽| 91丨porny丨蝌蚪视频| 日韩免费一区二区| 国产精品亲子乱子伦xxxx裸| 亚洲午夜私人影院| 国产成人av一区二区三区在线| 91麻豆精东视频| 精品日本一线二线三线不卡| 亚洲视频图片小说| 国产综合色产在线精品 | 91精品麻豆日日躁夜夜躁| 国产三级精品三级| 亚洲国产精品综合小说图片区| 国产一区日韩二区欧美三区| 91成人网在线| 欧美国产97人人爽人人喊| 视频一区视频二区中文| 97久久精品人人澡人人爽| 日韩一级欧美一级| 一区二区三区不卡视频| 成人免费高清视频| 欧美mv日韩mv| 视频在线观看一区| 972aa.com艺术欧美| 久久色在线观看| 亚洲国产成人porn| 色综合网站在线| 欧美激情综合网| 蜜臀av性久久久久蜜臀aⅴ四虎| 色综合天天天天做夜夜夜夜做| ww亚洲ww在线观看国产| 午夜精品免费在线观看| aaa亚洲精品一二三区| 国产亚洲精品7777| 美女视频黄 久久| 欧美亚洲综合久久| 亚洲视频一区二区在线观看| 国产剧情一区二区| 精品剧情在线观看| 免费成人深夜小野草| 欧美日本不卡视频| 亚洲电影第三页| 欧美午夜精品久久久| 亚洲欧美日韩中文播放 | 国产不卡免费视频| 欧美变态tickle挠乳网站| 奇米一区二区三区| 欧美一区二区在线免费播放| 亚洲国产精品一区二区www在线| 色综合久久久久综合体桃花网| 国产精品久久久久久亚洲毛片| 国产乱淫av一区二区三区| 久久久欧美精品sm网站| 久久99久久99| 精品欧美一区二区久久| 国产一区二区三区香蕉| 久久色视频免费观看| 国产在线不卡一卡二卡三卡四卡| 欧美成人r级一区二区三区| 精品制服美女丁香| 久久先锋影音av鲁色资源网| 国产精品一区免费视频| 国产精品国产三级国产aⅴ中文 | 亚洲欧美另类小说视频| 91麻豆swag| 午夜精品一区二区三区电影天堂| 欧美卡1卡2卡| 久久成人久久爱| 国产天堂亚洲国产碰碰| 波多野结衣在线一区| 一区二区不卡在线视频 午夜欧美不卡在| 色噜噜久久综合| 午夜精品久久久久久久久| 日韩一区二区三区视频在线| 经典三级在线一区| 中文无字幕一区二区三区| 色综合久久天天| 日本色综合中文字幕| 精品国产成人系列| 成人手机电影网| 一区二区不卡在线播放 | caoporn国产一区二区| 亚洲蜜臀av乱码久久精品| 欧美四级电影在线观看| 另类小说一区二区三区| 国产精品网站在线观看| 在线视频欧美精品| 精品一区二区三区视频 | 一区二区三区国产豹纹内裤在线|