.net删除问题
我的数据表里最后一个字段是文本类型,存的时候是用now()存的日期型数据,2017/7/27 20:27:37,今天是28号,我想把不同于今天日期的所有记录删除掉怎么写SQL语句Dim STRcon As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Application.StartupPath + "\vb1\KScount.mdb" ';Persist Security Info=False"
Dim myConn As OleDbConnection = New OleDbConnection(STRcon)
myConn.Open()
'删除按条件查找出来的记录
Dim STRdle As String = "delete from Tcount where 姓名='" & TextBox1.Text & "'"
就是上面这条语句怎么写可以判断出不是今天的日期......
Dim mycommand1 As New OleDbCommand(STRdle, myConn)
mycommand1.ExecuteNonQuery()
注:Tcount是KScount.mdb中的一个表