[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    SQL with QT - getting ID from insert-query with auto_increment
From:       Markus Oley <markus.oley () cse ! de>
Date:       2002-01-31 6:05:21
[Download RAW message or body]

Hi,

I want to create a dialogbox with an QListView and some QLineEdits. The data 
that is given in the QLineEdits must be stored in a mySQL - database. Now I 
have the problem that the ID of new data should be automatically created by 
the database. I solved this with the following QSqlQuery:

               INSERT INTO table .......

How do I get the ID that SQL gets for the new data to apply the QListView???

Thanx for every solution given

Markus
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic