16int nameCol = rec.
indexOf(
"name");
18 qDebug() <<
q.value(nameCol).toString();
22q.
prepare(
"insert into myTable values (?, ?)");
25ints << 1 << 2 << 3 << 4;
29names <<
"Harald" <<
"Boris" <<
"Trond" <<
QVariant(QMetaType::fromType<QString>());
The QSqlQuery class provides a means of executing and manipulating SQL statements.
bool prepare(const QString &query)
Prepares the SQL query query for execution.
The QSqlRecord class encapsulates a database record.
int count() const
Returns the number of fields in the record.
int indexOf(const QString &name) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
EGLint EGLint EGLint EGLint int int * ints
GLdouble GLdouble GLdouble GLdouble q