Click here to Skip to main content
15,911,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
Respected Sir,

I want to insert some data field in one table and some in secend table.
Like:
I want to insert User NAme And password in LOGINUSR table and Emailid And name in another table called registration.

How it is possible.

Pls help me

Thanks
Abhishek
Posted

1 solution

insert into LOGINUSR (UserName, Password)
values (@UserName, @Password)

insert into REGISTRATION (EmailId, Name)
values (@EmailId, @Name)
 
Share this answer
 
v2
Comments
abhiamity86 18-Jul-11 8:04am    
Thanks For reply....
But Sir will it work in single query.
R. Giskard Reventlov 18-Jul-11 8:13am    
Yes.

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