โ Learning is not just about technology, but also about dreams!
Home HTML JAVASCRIPT CSS VUE REACT PYTHON3 JAVA C C++ C# AI GO SQL LINUX VS CODE BOOTSTRAP GIT Local Bookmarks
ADO Tutorial
ADO Tutorial
ADO Introduction
ADO Database Connection
ADO ADO Recordset
ADO Display
ADO Query
ADO Sorting
ADO Add Records
ADO Update Records
ADO Delete Records
ADO Speed Up Scripts
ADO Command Object
ADO Connection Object
ADO Error Object
ADO Field Object
ADO Parameter Object
ADO Property Object
ADO Record Object
ADO Recordset Object
ADO Stream Object
ADO Data Types
ADO Summary
ADO Examples
ADO Update Records
ADO Speed Up Scripts Using GetString()
In-Depth Exploration
AI Tools, Chatbots, and Virtual Assistants
Web Applications and Online Tools
Computer
Web Services
Scripts
Web Service
Computer Science
Development Tools
Programming Languages
ADO Delete Records
We can use SQL's DELETE command to delete a record from a database table.
Delete Records from a Table
We want to delete a record from the Customers table in the Northwind database. First, we need to create a table listing all records in Customers.
List Database
<%
for each x in rs.Fields
ย ย response.write("| " & ucase(x.name) & " | ")
next
%>
ย ย ย ย |
ย ย ย ย <input type="submit" name="customerID" value="">
ย ย ย ย |
ย ย
ย ย ย ย |
ย ย
If the user clicks the button in the "customerID" column, a new file named "demo_delete.asp" will open. This file contains source code that creates input fields based on the fields of the record in the database, along with a "Delete" button to delete the current record:
Delete Record
ย ย
ย ย
ย ย
ย ย
ย ย |
ย ย <input name="" value=""> |
ย ย
ย ย
ย ย
ย ย
ย ย
ย ย
<%
else
ย ย sql="DELETE FROM customers"
ย ย sql=sql & " WHERE customerID='" & cid & "'"
ย ย on error resume next
ย ย conn.Execute sql
ย ย if err0 then
ย ย ย ย response.write("No update permissions!")
ย ย else
ย ย ย ย response.write("Record " & cid & " was deleted!")
ย ย end if
end if
conn.close
%>
ADO Update Records
ADO Speed Up Scripts Using GetString()
Byte Ark Coding Plan
Supports mainstream large models including Doubao, GLM, DeepSeek, Kimi, MiniMax, etc., officially supplied for stable and reliable service.
ยฅ9.9
/ month
Sign Up Now
iFLYTEK Xingchen Coding Plan
Includes free model invocation quotas; supports DeepSeek, GLM, Kimi, MiniMax โ an all-in-one experience and deployment platform.
ยฅ3.9
/ month
Sign Up Now
Click to Share Notes
Category Navigation
Python / Data Science
AI / Intelligent Development
Frontend Development
Backend Development
Databases
Mobile Development
DevOps / Engineering
Programming Languages
Computer Fundamentals
XML / Web Service
.NET
Website Development
Advertisement
ADO Tutorial
ADO Tutorial
ADO Introduction
ADO Database Connection
ADO ADO Recordset
ADO Display
ADO Query
ADO Sorting
ADO Add Records
ADO Update Records
ADO Delete Records
ADO Speed Up Scripts
ADO Command Object
ADO Connection Object
ADO Error Object
ADO Field Object
ADO Parameter Object
ADO Property Object
ADO Record Object
ADO Recordset Object
ADO Stream Object
ADO Data Types
ADO Summary
ADO Examples
Online Examples
ยทHTML Examples
ยทCSS Examples
ยทJavaScript Examples
ยทAjax Examples
ยทjQuery Examples
ยทXML Examples
ยทJava Examples
Character Sets & Tools
ยท HTML Character Set Settings
ยท HTML ASCII Character Set
ยท JS Obfuscation/Encryption
ยท PNG/JPEG Image Compression
ยท HTML Color Picker
ยท JSON Formatter Tool
ยท Random Number Generator
Latest Updates
ยท GraphRAG Beginner Tutorial
ยท Dart Enumerations and Symbols
ยท Dart Unit Testing
ยท Dart Concurrency and Iso...
ยท Dart Stream
ยท Dart Asynchronous Programming
ยท Dart Package and Library Management
Site Information
ยท Feedback
ยท Disclaimer
ยท About Us
ยท Article Archive
Follow WeChat
My Favorites
Bookmark Articles
Browsing History
Clear All
No records yet