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

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

?? qsqlquery.cpp

?? QT 開發(fā)環(huán)境里面一個很重要的文件
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
    \c SELECT statement, e.g. in    \code        SELECT forename, surname FROM people;    \endcode    field 0 is \c forename and field 1 is \c    surname. Using \c{SELECT *} is not recommended because the order    of the fields in the query is undefined.    An invalid QVariant is returned if field \a index does not    exist, if the query is inactive, or if the query is positioned on    an invalid record.    \sa previous() next() first() last() seek() isActive() isValid()*/QVariant QSqlQuery::value(int index) const{    if (isActive() && isValid() && (index > QSql::BeforeFirstRow))        return d->sqlResult->data(index);    qWarning("QSqlQuery::value: not positioned on a valid record");    return QVariant();}/*!    Returns the current internal position of the query. The first    record is at position zero. If the position is invalid, the    function returns QSql::BeforeFirstRow or    QSql::AfterLastRow, which are special negative values.    \sa previous() next() first() last() seek() isActive() isValid()*/int QSqlQuery::at() const{    return d->sqlResult->at();}/*!    Returns the text of the current query being used, or an empty    string if there is no current query text.    \sa executedQuery()*/QString QSqlQuery::lastQuery() const{    return d->sqlResult->lastQuery();}/*!    Returns the database driver associated with the query.*/const QSqlDriver *QSqlQuery::driver() const{    return d->sqlResult->driver();}/*!    Returns the result associated with the query.*/const QSqlResult* QSqlQuery::result() const{    return d->sqlResult;}/*!    Retrieves the record at position \a index, if available, and    positions the query on the retrieved record. The first record is    at position 0. Note that the query must be in an active state and    isSelect() must return true before calling this function.    If \a relative is false (the default), the following rules apply:    \list    \o If \a index is negative, the result is positioned before the    first record and false is returned.    \o Otherwise, an attempt is made to move to the record at position    \a index. If the record at position \a index could not be retrieved, the    result is positioned after the last record and false is returned. If    the record is successfully retrieved, true is returned.    \endlist    If \a relative is true, the following rules apply:    \list    \o If the result is currently positioned before the first    record or on the first record, and \a index is negative, there is no    change, and false is returned.    \o If the result is currently located after the last record, and    \a index is positive, there is no change, and false is returned.    \o If the result is currently located somewhere in the middle,    and the relative offset \a index moves the result below zero, the    result is positioned before the first record and false is    returned.    \o Otherwise, an attempt is made to move to the record \a index    records ahead of the current record (or \a index records behind the    current record if \a index is negative). If the record at offset \a index    could not be retrieved, the result is positioned after the last    record if \a index >= 0, (or before the first record if \a index is    negative), and false is returned. If the record is successfully    retrieved, true is returned.    \endlist    \sa next() previous() first() last() at() isActive() isValid()*/bool QSqlQuery::seek(int index, bool relative){    if (!isSelect() || !isActive())        return false;    int actualIdx;    if (!relative) { // arbitrary seek        if (index < 0) {            d->sqlResult->setAt(QSql::BeforeFirstRow);            return false;        }        actualIdx = index;    } else {        switch (at()) { // relative seek        case QSql::BeforeFirstRow:            if (index > 0)                actualIdx = index;            else {                return false;            }            break;        case QSql::AfterLastRow:            if (index < 0) {                d->sqlResult->fetchLast();                actualIdx = at() + index;            } else {                return false;            }            break;        default:            if ((at() + index) < 0) {                d->sqlResult->setAt(QSql::BeforeFirstRow);                return false;            }            actualIdx = at() + index;            break;        }    }    // let drivers optimize    if (isForwardOnly() && actualIdx < at()) {        qWarning("QSqlQuery::seek: cannot seek backwards in a forward only query");        return false;    }    if (actualIdx == (at() + 1) && at() != QSql::BeforeFirstRow) {        if (!d->sqlResult->fetchNext()) {            d->sqlResult->setAt(QSql::AfterLastRow);            return false;        }        return true;    }    if (actualIdx == (at() - 1)) {        if (!d->sqlResult->fetchPrevious()) {            d->sqlResult->setAt(QSql::BeforeFirstRow);            return false;        }        return true;    }    if (!d->sqlResult->fetch(actualIdx)) {        d->sqlResult->setAt(QSql::AfterLastRow);        return false;    }    return true;}/*!    Retrieves the next record in the result, if available, and    positions the query on the retrieved record. Note that the result    must be in an active state and isSelect() must return true before    calling this function or it will do nothing and return false.    The following rules apply:    \list    \o If the result is currently located before the first    record, e.g. immediately after a query is executed, an attempt is    made to retrieve the first record.    \o If the result is currently located after the last record,    there is no change and false is returned.    \o If the result is located somewhere in the middle, an attempt    is made to retrieve the next record.    \endlist    If the record could not be retrieved, the result is positioned after    the last record and false is returned. If the record is successfully    retrieved, true is returned.    \sa previous() first() last() seek() at() isActive() isValid()*/bool QSqlQuery::next(){    if (!isSelect() || !isActive())        return false;    bool b = false;    switch (at()) {    case QSql::BeforeFirstRow:        b = d->sqlResult->fetchFirst();        return b;    case QSql::AfterLastRow:        return false;    default:        if (!d->sqlResult->fetchNext()) {            d->sqlResult->setAt(QSql::AfterLastRow);            return false;        }        return true;    }}/*!    Retrieves the previous record in the result, if available, and    positions the query on the retrieved record. Note that the result    must be in an active state and isSelect() must return true before    calling this function or it will do nothing and return false.    The following rules apply:    \list    \o If the result is currently located before the first record,    there is no change and false is returned.    \o If the result is currently located after the last record, an    attempt is made to retrieve the last record.    \o If the result is somewhere in the middle, an attempt is made    to retrieve the previous record.    \endlist    If the record could not be retrieved, the result is positioned    before the first record and false is returned. If the record is    successfully retrieved, true is returned.    \sa next() first() last() seek() at() isActive() isValid()*/bool QSqlQuery::previous(){    if (!isSelect() || !isActive())        return false;    if (isForwardOnly()) {        qWarning("QSqlQuery::seek: cannot seek backwards in a forward only query");        return false;    }    bool b = false;    switch (at()) {    case QSql::BeforeFirstRow:        return false;    case QSql::AfterLastRow:        b = d->sqlResult->fetchLast();        return b;    default:        if (!d->sqlResult->fetchPrevious()) {            d->sqlResult->setAt(QSql::BeforeFirstRow);            return false;        }        return true;    }}/*!    Retrieves the first record in the result, if available, and    positions the query on the retrieved record. Note that the result    must be in an active state and isSelect() must return true before    calling this function or it will do nothing and return false.    Returns true if successful. If unsuccessful the query position is    set to an invalid position and false is returned.    \sa next() previous() last() seek() at() isActive() isValid()*/bool QSqlQuery::first(){    if (!isSelect() || !isActive())        return false;    if (isForwardOnly() && at() > QSql::BeforeFirstRow) {        qWarning("QSqlQuery::seek: cannot seek backwards in a forward only query");        return false;    }    bool b = false;    b = d->sqlResult->fetchFirst();    return b;}/*!    Retrieves the last record in the result, if available, and    positions the query on the retrieved record. Note that the result    must be in an active state and isSelect() must return true before    calling this function or it will do nothing and return false.    Returns true if successful. If unsuccessful the query position is    set to an invalid position and false is returned.    \sa next() previous() first() seek() at() isActive() isValid()*/bool QSqlQuery::last(){    if (!isSelect() || !isActive())        return false;    bool b = false;    b = d->sqlResult->fetchLast();    return b;}/*!    Returns the size of the result (number of rows returned), or -1    if the size cannot be determined or if the database does not    support reporting information about query sizes. Note that for    non-\c SELECT statements (isSelect() returns false), size() will    return -1. If the query is not active (isActive() returns false),    -1 is returned.    To determine the number of rows affected by a non-\c SELECT    statement, use numRowsAffected().    \sa isActive() numRowsAffected() QSqlDriver::hasFeature()*/int QSqlQuery::size() const{    if (isActive() && d->sqlResult->driver()->hasFeature(QSqlDriver::QuerySize))        return d->sqlResult->size();    return -1;}/*!    Returns the number of rows affected by the result's SQL statement,    or -1 if it cannot be determined. Note that for \c SELECT    statements, the value is undefined; use size() instead. If the    query is not active (isActive() returns false), -1 is returned.    \sa size() QSqlDriver::hasFeature()*/int QSqlQuery::numRowsAffected() const{    if (isActive())        return d->sqlResult->numRowsAffected();    return -1;}/*!    Returns error information about the last error (if any) that    occurred with this query.    \sa QSqlError, QSqlDatabase::lastError()*/QSqlError QSqlQuery::lastError() const{    return d->sqlResult->lastError();}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品免费视频| 不卡大黄网站免费看| 欧美三片在线视频观看| 婷婷六月综合网| 欧美乱妇15p| 美女脱光内衣内裤视频久久网站 | 国产九九视频一区二区三区| 精品久久久久久久人人人人传媒| 另类综合日韩欧美亚洲| 国产性色一区二区| 色哦色哦哦色天天综合| 日韩一区精品字幕| 久久综合资源网| 99精品久久99久久久久| 亚洲另类中文字| 日韩免费视频一区二区| 国产福利精品一区二区| 亚洲精品va在线观看| 欧美一级片在线| 成人免费三级在线| 亚洲午夜免费电影| 欧美精品一区男女天堂| 91色九色蝌蚪| 久久精品国产99国产| 国产精品久久久久影院色老大 | 欧美成人欧美edvon| 国产精品系列在线播放| 亚洲黄色在线视频| 日韩欧美的一区二区| 91在线云播放| 毛片一区二区三区| 亚洲色图色小说| www成人在线观看| 欧美丝袜自拍制服另类| 国内精品嫩模私拍在线| 夜夜爽夜夜爽精品视频| 久久精品一区八戒影视| 7777精品伊人久久久大香线蕉完整版 | 国产欧美日韩在线观看| 欧美视频一区在线观看| 国产精品乡下勾搭老头1| 天堂在线亚洲视频| 亚洲图片另类小说| 26uuu国产一区二区三区| 欧美性三三影院| 成人高清视频在线观看| 蜜臀av一区二区| 亚洲一区二区在线播放相泽| 国产精品人人做人人爽人人添| 日韩一级片网址| 欧美性感一类影片在线播放| 成人av电影观看| 国产中文字幕精品| 日韩经典一区二区| 中文字幕亚洲视频| 国产无一区二区| 亚洲精品一区二区在线观看| 在线综合视频播放| 欧美日韩一区二区在线观看视频 | 亚洲第一二三四区| 1区2区3区精品视频| 国产日产欧美一区二区视频| 91麻豆精品国产| 欧美日韩黄色影视| 欧美伊人久久久久久久久影院| 97se亚洲国产综合自在线| 黄色小说综合网站| 美女性感视频久久| 久久国产精品免费| 久草这里只有精品视频| 蜜桃久久av一区| 久久精品国产久精国产| 日本不卡一二三| 日韩电影免费一区| 水蜜桃久久夜色精品一区的特点 | 91视频www| 91同城在线观看| 色综合天天综合网天天狠天天| 99免费精品在线观看| 91一区二区三区在线观看| 99免费精品视频| 91亚洲资源网| 欧美三日本三级三级在线播放| 在线亚洲欧美专区二区| 欧洲色大大久久| 欧美日韩第一区日日骚| 欧美精品亚洲一区二区在线播放| 欧美久久一二三四区| 3atv在线一区二区三区| 欧美tickling网站挠脚心| 精品国产免费人成电影在线观看四季| 日韩精品在线一区二区| 久久久国际精品| 综合色天天鬼久久鬼色| 亚洲自拍另类综合| 热久久免费视频| 国产一区二区三区在线观看精品| 国产成人亚洲综合a∨婷婷图片| 成人午夜av电影| 欧美三级电影网站| 欧美一区二区三区四区高清| 国产三级精品在线| 亚洲精品高清在线| 男女男精品网站| 国产91高潮流白浆在线麻豆| 91网页版在线| 日韩一级黄色片| 中文字幕精品一区二区精品绿巨人 | 中文字幕欧美国产| 亚洲伦理在线精品| 毛片av一区二区三区| 不卡的电视剧免费网站有什么| 一本色道综合亚洲| 91精品国产乱码久久蜜臀| 欧美国产精品一区二区三区| 一区二区三区在线观看视频| 伦理电影国产精品| 91免费国产在线| 日韩久久免费av| 亚洲天堂成人在线观看| 蜜臀久久99精品久久久画质超高清| 成人h动漫精品一区二区| 欧美日韩中字一区| 欧美激情一区二区三区| 亚洲成a人片在线不卡一二三区| 国产一区高清在线| 欧美亚男人的天堂| 国产精品久久三区| 日本麻豆一区二区三区视频| 丰满少妇在线播放bd日韩电影| 欧美日韩一区三区四区| 国产精品乱码人人做人人爱 | 26uuu亚洲综合色| 亚洲国产精品天堂| 99久久综合国产精品| 精品理论电影在线| 亚洲成av人片| 99国产精品视频免费观看| 2020国产精品久久精品美国| 天天色天天操综合| 欧美中文一区二区三区| 国产欧美一区二区在线观看| 麻豆成人av在线| 欧美日韩国产综合一区二区| 亚洲国产精华液网站w| 国产一区二区免费在线| 欧美猛男男办公室激情| 1区2区3区国产精品| 成人中文字幕合集| 久久久久久久久蜜桃| 日韩成人一区二区| 制服视频三区第一页精品| 亚洲第一在线综合网站| 色菇凉天天综合网| 亚洲男人的天堂在线aⅴ视频| 国产成人三级在线观看| 精品福利一区二区三区免费视频| 五月天久久比比资源色| 欧美午夜精品一区| 亚洲一级二级在线| 在线观看区一区二| 亚洲夂夂婷婷色拍ww47| 97aⅴ精品视频一二三区| 亚洲婷婷在线视频| 91视频观看视频| 亚洲最新在线观看| 91国偷自产一区二区三区成为亚洲经典| 中文在线一区二区| youjizz国产精品| 国产精品成人一区二区三区夜夜夜 | a级精品国产片在线观看| 日本一区免费视频| www.成人网.com| 亚洲视频一二三| 在线一区二区视频| 亚洲观看高清完整版在线观看 | 国产精品美女久久久久久2018| 国产成人在线看| 国产精品久久久久影院老司 | 午夜激情综合网| 欧美一区二区观看视频| 狠狠色伊人亚洲综合成人| 久久久久久久久97黄色工厂| 成人免费毛片嘿嘿连载视频| 中文字幕一区二| 欧美区一区二区三区| 精品一区二区三区视频 | 日韩精品在线看片z| 国产高清不卡一区| 亚洲码国产岛国毛片在线| 欧美日韩不卡在线| 韩国在线一区二区| 亚洲日本va在线观看| 3atv在线一区二区三区| 国产91丝袜在线播放九色| 亚洲欧美色综合| 欧美肥妇毛茸茸| 成人免费的视频| 天天av天天翘天天综合网色鬼国产| 欧美大片在线观看一区|