sql语句执行问题
1,000次浏览
编辑于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";
推荐阅读