Database

G

Gandalf

I study the manual of W3Schools, And couldn't find enough
explanation for Databases.
I managed to understand how to pull out data from table, But don't
know yet how to update and insert data.

This code pulls data from a table. I would like you to show me how
should I update and insert data to the same table, if you too busy,
then link for a good manual that explain this stuff would be nice too.
(sorry for my english)
thanks

dim dbconn,sql,dbcomm,dbread
dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data
source=" & server.mappath("/a/northwind.mdb"))
dbconn.Open()
sql="SELECT * FROM customers"
dbcomm=New OleDbCommand(sql,dbconn)
dbread=dbcomm.ExecuteReader()
customers.DataSource=dbread
customers.DataBind()
dbread.Close()
dbconn.Close()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top