vb 与sql 中的日期小问题
看:PrivateSubCommand2_Click()getday=Format(Text_arridate.Text,"yyyy-mm-dd")Text1.Text=...
看:
Private Sub Command2_Click()
getday = Format(Text_arridate.Text, "yyyy-mm-dd")
Text1.Text = getday
Dim mysql As String
mysql = "update guests set arridate=('getday') where roomcode='102'"
myConn.Execute mysql
End Sub
TEXT1.text是我用来测试的,的确认里面能显示日期比如2007-11-24.
可是关键是text1.text怎么样才能录入到sql里的datetime型列表中? 展开
Private Sub Command2_Click()
getday = Format(Text_arridate.Text, "yyyy-mm-dd")
Text1.Text = getday
Dim mysql As String
mysql = "update guests set arridate=('getday') where roomcode='102'"
myConn.Execute mysql
End Sub
TEXT1.text是我用来测试的,的确认里面能显示日期比如2007-11-24.
可是关键是text1.text怎么样才能录入到sql里的datetime型列表中? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询