Answer the question
In order to leave comments, you need to log in
How to find out how many rows have been added to the database?
I get an array of users from AD and write this array to the database through a loop. The table has an ad_id column where a unique user code from AD is recorded, the column itself can only have a unique value, so if 5 users come again, it throws an error, oh, ad_id is not unique and does not record anything. If you send 6 users, then 5 users will not be recorded, but 1 user will be added to the database, but an error will be displayed on the screen about the non-uniqueness of the data.
Tell,
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question