Hello all,
I have a question concerning activating the foreign key in qt. I create a query just after opening my database (see below). Is this the correct way? How can i check it?
Qt Code:
int main(int argc, char *argv[]) { db.setDatabaseName("d:/database/Client1"); bool ok = db.open(); QSqlQuery query; query.exec("PRAGMA foreign_keys = ON;"); Login w; w.show(); return a.exec(); }To copy to clipboard, switch view to plain text mode
Thank you in advance!
Bookmarks