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.
The QSqlRecord class encapsulates a database record.
int count() const
Returns the number of fields in the record.
int indexOf(const QString &name) const
Returns the position of the field called name within the record, or -1 if it cannot be found.
EGLint EGLint EGLint EGLint int int * ints
GLdouble GLdouble GLdouble GLdouble q