访问/SQL查询
为什么此查询不能在 Access 数据库上运行?它在 MS SQL 数据库上运行得很好。
Dim MN As Single = 100
Dim MX As Single = 200
sql_Data.Reset()
sql_DA1 = New SqlDataAdapter("select * into NEWTABLE from OLDTABLE WHERE DEBIT BETWEEN " & "'" & mn & "'" & "AND" & "'" & mx & "'", sql_con)
sql_DGV1 = New SqlCommandBuilder(sql_DA1)
sql_DA1.Fill(sql_Data)
谢谢。
Why won't this query work on an access database? It works just fine on a MS SQL Database.
Dim MN As Single = 100
Dim MX As Single = 200
sql_Data.Reset()
sql_DA1 = New SqlDataAdapter("select * into NEWTABLE from OLDTABLE WHERE DEBIT BETWEEN " & "'" & mn & "'" & "AND" & "'" & mx & "'", sql_con)
sql_DGV1 = New SqlCommandBuilder(sql_DA1)
sql_DA1.Fill(sql_Data)
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Debit
是数字,因此:Debit
is numeric, thus: