Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If there is a difference, I want to check this difference with if else.
If there is a difference, I want the database not to insert.
So I want the following code field not to be added if there is a difference.
How do I check.

What I have tried:

Excel and database compare two table.
Posted
Updated 9-Jun-19 17:55pm
v2
Comments
Rahul VB 9-Jun-19 15:30pm    
your question is not clear. Do you mean that you read every value from the student Id column and every value from the excel sheet containing student id column and compare them?
[no name] 9-Jun-19 15:37pm    
Hello.Yes compare db and excel file.So, READDB database table
I want to compare StudentNameRecord (ID) with the exclusion (ID), and if there is no difference, I want to add the exceli to the Students table.
If there is a difference, I want the following code field not to add.

1 solution

Load the excel file INTO A TEMPORARY DB TABLE; compare and update the target table based on your criteria.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900