i bir büyük bir SQL deyimi var, bu şeyleri biçimlendirmek için herhangi bir "akıllı" bir yolu var?
$serverFields = 'SERVER_ID, SERVERNAME, SERVERLOCATION_ID, SERVERLOCATIONDETAIL_ID,
SERVEROS_ID, SERVEROSVERSION_ID, IP_BACKEND, IP_FRONTEND, IP_BACKUP,
SERVERREMOTETOOL_IDS, LOGIN, DESCRIPTION, TIME_INSERT, TIME_UPDATE,
CHANGE_USER, MANDATOR_ID, TIVOLI_UPDATABLE, TIVOLI_LAST_SCAN,
TIVOLI_LAST_UPDATE, WINDOMAIN_ID, PROCESSORCOUNT, OS_ID, PHYSICAL_MEMORY_KB';
$ OsFields = 'OSLANG_ID, OSARCH_ID, OSSUBVERSION_ID, OSMINORVERSION_ID, OSMAJORVERSION_ID, OSTYPE_ID';
$ ProcessorFields = 'PROCESSORMODEL_ID, PROCESSORMANUFACTURER_ID';
$sql = sprintf(
"SELECT %s , %s , %s FROM %s s
LEFT OUTER JOIN (
(OS JOIN
OSSUBVERSION USING (OSSUBVERSION_ID)) JOIN
OSMINORVERSION USING (OSMINORVERSION_ID) JOIN
OSMAJORVERSION USING (OSMAJORVERSION_ID)
)USING (OS_ID) LEFT OUTER JOIN (
PROCESSORMODEL JOIN PROCESSORMANUFACTURER USING(PROCESSORMANUFACTURER_ID)
)USING (PROCESSORMODEL_ID) WHERE
%s = :id AND MANDATOR_ID = :mandatorId",
$serverFields, $osFields, $processorFields, $this->_tableName, $this->_identifier);