vb里定义了一个带参数函数,调用语句如下写,编译通不过,会说缺少:列表分隔符或)
vb里定义了一个带参数函数,调用语句如下写,编译通不过,会说缺少:列表分隔符或)
Public Function a(ByVal SQLStr As String) As Boolean
然后在其他地方call a( "select b as "c,v " from d ")
但把这个select语句在sql server里这样写试下来是对的
[解决办法]
call a( "select b as " "c,v " " from d ")
[解决办法]
字符串里不能像这样套双引号。
可以这么写:
call a( "select b as " & " " " & "c,v " & " " " & " from d ")
[解决办法]
最好是先定义一个字符串再来调用方便点.
[解决办法]
字符串连接要注意
[解决办法]
1楼秀峰的正解