I want to check duplicate Id validation in sql server, that validation grid display row number , validation message & duplicate ID from sql server
I am not able to understand that how can I do it ?
Help is really appreciate
Create Table
CREATE TEMPORARY TABLE IF NOT EXISTS Tbl_Student
(RowID INT PRIMARY KEY auto_increment, StudentID BIGINT);
Insert Records
Insert into Tbl_Student(RowID,StudentID) values (1,101)
Insert into Tbl_Student(RowID,StudentID) values (2,102)
Insert into Tbl_Student(RowID,StudentID) values (3,101)
Insert into Tbl_Student(RowID,StudentID) values (4,102)
Insert into Tbl_Student(RowID,StudentID) values (5,103)
Please let share if any solution over there
Thank you