sql联合查询的详细讲解 select * from 表A,表A子表 where 表A.FileCode = 表A子表.FileCode and 表A.ID in (select 表A子表.ID from 表A子表 where Vc_Code = '1190' AND Vc_Num ='111300' AND Er_Num ='0101'); 这个查询的条件在子表,而结果在父表,没用关联查询,直接查询2个表
但很多时候为了方便,我们会自定义生成文本文件的函数
Function createTextFile(Byval content,Byval fileDir,Byval code)
dim fileobj,fileCode : fileDir=replace(fileDir, "\", "/")
if isNul(code) then fileCode=Charset else fileCode=code
call createfolder(fileDir,"filedir")
if f