Hi
I want to import data from excel into Sql.
I have 3 fields - PersonId , Name , Salary. I want PersonId should not be duplicate. How we can do this
Thanks
Hi
I want to import data from excel into Sql.
I have 3 fields - PersonId , Name , Salary. I want PersonId should not be duplicate. How we can do this
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Md SarfarajRank #194 · 12.4K reputationPosted Mar 14, 2022, 5:39 AM EDT
Satya KarkiRank #78 · 24.6K reputationPosted Mar 14, 2022, 8:41 AM EDT
New PersonId= GetMaximum PersonId from your table +1
Satya KarkiRank #78 · 24.6K reputationPosted Mar 14, 2022, 8:44 AM EDT
Srinivasan RamamoorthiRank #877 · 2.5K reputationPosted Mar 14, 2022, 9:30 AM EDT
Leon DRank #851 · 2.6K reputationPosted Mar 14, 2022, 9:17 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 14, 2022, 11:01 PM EDT
Jagjit SainiRank #6,453 · 266 reputationPosted Mar 15, 2022, 3:01 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 15, 2022, 3:15 AM EDT
Hi,
you can remove duplicate from your datatable using this,
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Mar 17, 2022, 11:13 AM EDT