Obsolete Members for QSqlDatabase

クラスQSqlDatabase の以下のメンバーは非推奨です。これらは古いソース・コードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。

パブリック関数

(deprecated in 6.6) QSqlQuery exec(const QString &query = QString()) const

メンバ関数ドキュメント

[deprecated in 6.6] QSqlQuery QSqlDatabase::exec(const QString &query = QString()) const

この関数は6.6から非推奨となった。新しいコードでは使用しないことを強くお勧めします。

データベース上で SQL 文を実行し、QSqlQuery オブジェクトを返します。エラー情報を取得するにはlastError() を使用してください。query が空の場合、空の無効なクエリが返され、lastError() には影響しません。

代わりにQSqlQuery::exec() を使用します。

QSqlQuery およびlastError()も参照して ください。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.