나는 엑셀에서 SQL 쿼리를 실행하려고 내가 원하는 :열을 "정렬"하고 "열 이름을 쿼리에 포함"하는 방법?
1. 위해
2. 쿼리
에 열 이름을 포함 내 열 "Stationname"에 의해 쿼리 결과 지금은 열 이름없이 모든 열을 반환하고 있으며 최종 사용자는 그 열이 무엇인지 알지 못합니다.
누군가 도와주세요. 나는 붙어있다! 주문에 대한
strQuery = "select pipelineflow.lciid lciid, ldate, volume, capacity, status, " & _
"pipeline, station, stationname, drn, state, county, owneroperator, companycode, " & _
"pointcode, pointtypeind, flowdirection, pointname, facilitytype, pointlocator, " & _
"pidgridcode from pipelineflow, pipelineproperties " & _
"where pipelineflow.lciid = pipelineproperties.lciid " & _
"and pipelineflow.audit_active = 1 " & _
"and pipelineproperties.audit_active =1 " &
_
"and pipelineflow.ldate " & dtInDate & _
"and pipelineproperties.stationname = '" & Stationname & "' "