Forum

Insert new values i...
 
Notifications
Retirer tout

Insert new values in Projectorria database (table report and reportcategory)

2 Posts
2 Utilisateurs
0 Reactions
4,234 Vu
DEDIEU
(@jcde)
Posts: 104
Active Member
Début du sujet
 
[#880]

Hi,

We would like to add new reports in Projectorria database.

For that, we are going to force the id of these reports to high values (10000, etc.).

If you need to create new reports on your side, we would like to know how you will proceed: Solution 1 or solution 2 below ?

Solution 1:
INSERT INTO report (id, ...) VALUES (null, ...) (that is to say: AUTO_INCREMENT)

Solution 2:
INSERT INTO report (id, ...) VALUES (XXX, ...) (that is to say the id is "manually" defined)

Same question concerning "reportcategory" table.

Thanks in advance for your help.


 
Posté : 10 Jan PM 18:011
(@babynus)
Posts: 14952
Membre Admin
 

Hi,
Solution 2 : fixing the id.
It is the easier way to be able to insert reportparameter corresponding to reports.
Same for reportCategory.

So, using high IDs for your own reports is the good solution.


 
Posté : 10 Jan PM 19:011
Share:
Retour en haut