Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Insert new values i...
 
Notifications
Clear all

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

2 Posts
2 Users
0 Reactions
4,254 Views
DEDIEU
(@jcde)
Posts: 104
Active Member
Topic starter
 
[#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.


 
Posted : 10 Jan 2013 18H55
babynus
(@babynus)
Posts: 14966
Main Contributor 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.


 
Posted : 10 Jan 2013 19H07
Share:

Scroll to Top