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()를 사용하세요.

QSqlQuerylastError()도 참조하세요 .

© 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.