Hi Shanky11 ,
Please execute the following SQL script;
Use 'userid' in where condion because 'userid' is primary key.so its unique.
DECLARE @UserID AS UNIQUEIDENTIFIER;
DECLARE @mobile AS VARCHAR(20);
DECLARE @username AS VARCHAR(20);
DECLARE @lastname AS VARCHAR(20);
DECLARE @emailID AS VARCHAR(20);
SET @UserID= ''; --Example :- @UserID='3A2BBBE8-B153-46EE-BE20-A0D100C91542';
SET @mobile= ''; --Example :- @MobileNo=txtMobile.Text;
SET @username=''; --Example :- @Username=txtuserNameEdit.Text;
SET @lastname=''; --Example :- @Lastname=txtLastName.Text ;
SET @emailID= ''; --Example :- @EmailID=txtMobile.Text
BEGIN
UPDATE registration set username=@username,lastname=@lastname,Mobile=@mobile,emailID=@emailID WHERE userid=@UserID;
END
Shanky11, if this helps please login to Mark As Answer. | Alert Moderator