web tools rank checker

domain .cn
.net .cn .com.cn
你正在阅览 :: 简体中文:: 学习 ASP SQL VB HTML code

学习 .ASP SQL HTML XML CSS JAVA Perl code study
English Chinese_Traditional Chinese_Simplified

你正在阅览 :: 简体中文 Chinese_Simplified

学习.主题:
首页
ASP
. Active-Server-Flash
. Array
. Connection
. Count
. Counter
. Distinct
. Email
. File
. Folder
. Function
. GetSQLserver
. Header
. mySQL
. Record
»delete
»update
»update-movenext
»update-wend
. Recordset
. Request
. Response
. Server
. Server-CreateObject
. ServerVariables
. Session
. Special-Symbols
. String
. Sub
. Time
CSS
Ecommerce
HTML
InternetProtocol
JAVA
Microsoft
Robots
SearchEngine
SQL
SQLserver
VBscript
XML

SiteMap

3w....学习.教学 > ASP > record » delete

3w learning

record >
delete

Title:

delete a Record or records(delete a raw data)


删除符合的数据(删除全列数据)
Description:

delete records from a Column's sell which is ___


删除整列数据,而数据某字段数据
必须完全符合条件值
Example Code:

<% SQLDelete = "Delete from aTable where aColumm='___' " conn.Execute SQLDelete %> ----------------------------------------- <% Set rs= conn.Execute ("select * from aTable " ) if not rs.eof then id=rs("id") FT=rs("Ftime") DD=DateDiff("m",FT,now) if DD>1 then SQLDelete = "Delete from aTabl1 where id1='"&id&"'" conn.Execute SQLDelete end if end if %> Do not use [ Delete * from ] no * <% '----- to delete all datas from tb1 ----- no need " * " SQLDelete = "Delete from tb1 " conn.Execute SQLDelete %>


注意:是删除所有符合的数据列
可能是多于一笔....
所以不用使用:下一个(next)或计数(count)
Example Result:


compare with now delete all raws which time different is bigger than one month


删除与现在时间有相差大于一个月时间的数据
..
...
...

[ 7/27/2008 ]

www learning school add more scripts and tips memo
You are at >>3WS.EZER.COM >> 3WS.EZER.COM/ASP/RECORD/DELETE.ASP>>ASP
Helpful link:: SEO web tools :: Live PR | SERP checker
back to top Ezer code adding :: Questions ;email