大家好,请大家帮忙!
比如下面一段代码:
Dim I As Integer
Dim H As Integer
Dim D As Integer
Dim a As Integer
Dim b As Integer
Dim c As Integer a = 1
b = 2
c = 3
I = a + b
H = a + c
D = b + c sql = "INSERT INTO `example`.`Dim I As Integer
Dim H As Integer
Dim D As Integer
Dim a As Integer
Dim b As Integer
Dim c As Integer a = 1
b = 2
c = 3
I = a + b
H = a + c
D = b + c sql = "INSERT INTO `example`.`cylindar` (`I` ,`H` ,`D`)VALUES (I,H,D) "
rs.Open sql, cn 我想把I,H,D这三个变量对应的值也就是3,4,5存储到表cylindar中,但每次存进去的都是空值,怎么回事啊?谢谢帮忙!
比如下面一段代码:
Dim I As Integer
Dim H As Integer
Dim D As Integer
Dim a As Integer
Dim b As Integer
Dim c As Integer a = 1
b = 2
c = 3
I = a + b
H = a + c
D = b + c sql = "INSERT INTO `example`.`Dim I As Integer
Dim H As Integer
Dim D As Integer
Dim a As Integer
Dim b As Integer
Dim c As Integer a = 1
b = 2
c = 3
I = a + b
H = a + c
D = b + c sql = "INSERT INTO `example`.`cylindar` (`I` ,`H` ,`D`)VALUES (I,H,D) "
rs.Open sql, cn 我想把I,H,D这三个变量对应的值也就是3,4,5存储到表cylindar中,但每次存进去的都是空值,怎么回事啊?谢谢帮忙!
如果 i h d 是字符 加
(字段列表)
VALUES (变量列表)
----------------------------INSERT INTO titles
(title_id, title, type, pub_id, price)
VALUES ('BU9876', 'Creating Web Pages', 'business', '1389', '29.99')