ADO add record

We can use SQL's INSERT INTO command to add records to tables in the database. 


Add a record to a table in the database

We want to add a new record to the Customers table in the Northwind database. We first create a form that contains the input fields we need to collect data from:

<html>
<body>

<form method="post" action="demo_add.asp">
<table>
<tr>
<td>CustomerID:</td>
<td><input name="custid"></td>
</tr><tr>
<td>Company Name:</td>
<td><input name="compname"></td>
</tr><tr>
<td>Contact Name:</td>
<td><input name="contname"></td>
</tr><tr>
<td>Address:</td>
<td><input name="address"></td>
</tr><tr>
<td>City:</td>
<td><input name="city"></td>
</tr><tr&g

Guess you like

Origin blog.csdn.net/shengyin714959/article/details/132017550
ADO