delphi7不支持 sql语言查询中带中文么```?
select dept_code from DEPARTMENT_DICT
where dept_name ='西药房'
这么一条语句在pb8里可以查出结果 但在delphi7里面就不行
select dept_code from DEPARTMENT_DICT
where dept_name ='西药房'
这么一条语句在pb8里可以查出结果 但在delphi7里面就不行
Query1.SQL.Text:='select dept_code from DEPARTMENT_DICT where dept_name =''西药房''';
where dept_name =' + QuotedStr('西药房')
还用 DEPARTMENT_DICT为comm的所有后来改成了
select dept_code from comm.department_dict
where dept_name ='西药房'
在pb8了可以查到结果 可是d7还是空的结果 请大家帮忙想想还有什么问题啊?
//
delphi7不支持 sql语言查询中带中文么```?
select dept_code from DEPARTMENT_DICT
where dept_name ='西药房'
这么一条语句在pb8里可以查出结果 但在delphi7里面就不行
//
PB是什么语法,DELPHI7.0又是什么语法。你先把他们搞懂了再说吧!
'select dept_code from DEPARTMENT_DICT
where dept_name =' + QuotedStr('西药房')