Click here to Skip to main content
15,907,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
i have created a table with four columns in database
and
i have taken four text boxes and four buttons

can you please tell me the code to insert , delete , update and select the values
from database
Posted
Comments
JBSAHU 5-Nov-11 8:22am    
for insert:
insert into tablename values('"+textbox1.text+"','"+textbox2.text+"','"+textbox3.text+"','"+textbox4.text+"')

delete from tablename where colomnname='"+any textboxname+"'

update tablename set columnname='"+textbox1.text+"',columnname='"+textbox2.text+"' where columnname='"+textbox3,text+"'

you may try this...........

 
Share this answer
 
This is very basic Question.
Go through the link[^].
 
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