积极答复者
sql语句出错

问题
答案
-
vSQL = "SELECT * FROM hq where price between "
+ upprice
+ " and " //是在这一行出错
+ lowprice;
印象中您是使用VB.net吧?试试这样
vSQL = "SELECT * FROM hq where price between " _ + upprice _ + " and " _ + lowprice
- The blog of typewriter職人
- Convert C# to VB.NET
- /*If my concept is wrong ,please correct me.Thanks.*/
- 已标记为答案 Honny_yeyh 2012年1月9日 14:50
全部回复
-
Between后面再多一个空白试试看
※还有您若是用vb.net的话,后面不用加 ;
vSQL = "SELECT * FROM hq where price between "
+ upprice
+ " and "
+ lowprice
- The blog of typewriter職人
- Convert C# to VB.NET
- /*If my concept is wrong ,please correct me.Thanks.*/
- 已编辑 Shadow .Net 2012年1月9日 13:37
-
Between后面再多一个空白试试看
vSQL = "SELECT * FROM hq where price between "
+ upprice
+ " and " //是在这一行出错
+ lowprice;
- The blog of typewriter職人
- Convert C# to VB.NET
- /*If my concept is wrong ,please correct me.Thanks.*/
知道了要double to char
- 已编辑 Honny_yeyh 2012年1月9日 13:44
-
vSQL = "SELECT * FROM hq where price between "
+ upprice
+ " and " //是在这一行出错
+ lowprice;
印象中您是使用VB.net吧?试试这样
vSQL = "SELECT * FROM hq where price between " _ + upprice _ + " and " _ + lowprice
- The blog of typewriter職人
- Convert C# to VB.NET
- /*If my concept is wrong ,please correct me.Thanks.*/
- 已标记为答案 Honny_yeyh 2012年1月9日 14:50