PDA

View Full Version : Conect and do select in a database mysql



mmm286
10th March 2010, 16:04
Hi,

I must to do some select in a database MySQL with qt.
Could you say how could I do connect with the database and execute select?

Many thanks and sorry for my english!

Lykurg
10th March 2010, 16:21
Could you say how could I do connect with the database and execute select?
There is a very easy way: Go and read the documentation!!! Have a special look at QSqlDatabase and QSqlQuery. At the detailed description you find your code snippets.