Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql vb2005语法错误_Sql_Vb.net - Fatal编程技术网

Sql vb2005语法错误

Sql vb2005语法错误,sql,vb.net,Sql,Vb.net,谁能帮我检查一下下面的代码,我有一个语法错误 我可能遗漏了一些语法 "WHERE PaymentLedger.JobScheduleGUID = JobSchedule.GUID " & _ "AND JobSchedule.CLID = LabourProfile.CLID " & _ "AND LabourProfile.CLNationality = 'MALAYSIA' " & _

谁能帮我检查一下下面的代码,我有一个语法错误

我可能遗漏了一些语法

"WHERE PaymentLedger.JobScheduleGUID = JobSchedule.GUID " & _
                 "AND JobSchedule.CLID = LabourProfile.CLID " & _
                 "AND LabourProfile.CLNationality = 'MALAYSIA' " & _
                 "AND (PaymentLedger.SOCSOEmployerContri > 0  or PaymentLedger.EPFEmployeeContri > 0) " & _
                '"AND (PaymentLedger.Credit > 0) " & _
                 "AND (PaymentLedger.Credit > 0 or PaymentLedger.Debit > 0) " & _

谢谢你看这两行:

            '"AND (PaymentLedger.Credit > 0) " & _
             "AND (PaymentLedger.Credit > 0 or PaymentLedger.Debit > 0) " & _
1-删除第一个上的“标记”

2-删除第二个上的&&

可以发布更多代码吗?目前还不清楚该错误仅基于该代码。是VB语法错误还是SQL语法错误?如果是VB,则发布整个VB语句。如果它是SQL,那么你是否真的看过完整的SQL,或者只是看构造它的VB?之前可能没有空格,如果它的SQL。。。但是,是的,给我们更多的细节。对不起,伙计。添加了一些代码以进行更多说明。对这是VB语法错误。
'
行和(PaymentLedger.Credit>0)&中的
'
是发布问题的打字错误,还是实际上在代码中?