7,789
社区成员
发帖
与我相关
我的任务
分享delete from aaa where not isnumeric(序号)
或delete from aaa where isnumeric(序号)=falseDim conn As ADODB.Connection
Dim rs As ADODB.Recordset
Set conn = New ADODB.Connection
Set rs = New ADODB.Recordset
conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\111\bss.mdb; Persist Security Info=False"
conn.Open
rs.Open "select * from aaa where isnumeric(序号)=false", conn, adOpenKeyset, adLockOptimistic
rs.Delete
rs.Update
rs.Close
conn.Close