sql语句执行问题
金蝶云社区-764600688
764600688
0人赞赏了该文章 979次浏览 未经作者许可,禁止转载编辑于2016年06月13日 11:41:02

sql语句执行的时候总是报错,为什么会出现DbUtil未定义,找不到的问题?查询语句全文如下:var sql = "SELECT 'DEPARTMENTMAPPING'.FID AS 'ID', 'DEPARTMENTMAPPING'.FNumber AS 'NUMBER', 'DEPARTMENTMAPPING'.FName_l2 AS 'NAME', 'DEPARTMENTMAPPING'.FSimpleName AS 'SIMPLENAME', 'DEPARTMENTMAPPING'.FDescription_l2 AS 'DESCRIPTION', 'DEPARTMENTMAPPING'.CFDepartmentNumber AS 'DEPARTMENTNUMBER', 'DEPARTMENTMAPPING'.CFDepartmentName_l2 AS 'DEPARTMENTNAME', 'DEPARTMENTMAPPING'.CFBelongCompanyNumber AS 'BELONGCOMPANYNUMBER', 'DEPARTMENTMAPPING'.CFBelongCompanyName_l2 AS 'BELONGCOMPANYNAME' FROM CT_CUS_DepartmentMapping AS 'DEPARTMENTMAPPING' WHERE 'DEPARTMENTMAPPING'.CFBelongCompanyNumber = " + companyID + " ORDER BY 'NUMBER' ASC";