dimanche 11 octobre 2015

Set auto-increment ID to table layout

Is it possible to add an auto-increment ID in table layout?

For example, I want to retrieve all the information about Allen and using left-inner jointo join this two tables. Finally retrieve them into tableView. Can we set an auto-increment ID to table layout which will display as 1 in the first row ? Will it be impossible?

 ID          NAME        Weather        Date     Status
 ----------  ----------  ----------  ----------  ----------
    1           Paul        Sunny         15/10      MC
    2           Allen       Rainy         15/10      Working


ID1          SubContractors   NoOfPeople      NoOfHours        TInfo_id
----------  --------------   ----------       ----------     -----------
1           AAA                2                 2                 1
2           BBB                3                 1                 2

Aucun commentaire:

Enregistrer un commentaire