Hallo nochmal,
leider tritt ein ähnliches Problem an einer anderen Stelle auf.
Ich habe folgendes Statement geschrieben und es werden nach dem Speichern immer die Zeilenumbrüche rausgelöscht.
Das Rauslöschen geschieht in dem das er den \ vor dem \n entfernt.
SELECT
obj_main.isys_obj__title AS 'Titel',
j5.isys_purpose__title AS 'Eingesetzt',
j1.isys_sla_service_level__title AS 'Service Level',
concat(j2.isys_catg_sla_list__reaction_time, ' Stunden') AS 'Reaktionszeit',
concat(j2.isys_catg_sla_list__recovery_time, ' Stunden') AS 'Wiederherstellungszeit',
concat('Montag Von: ', SEC_TO_TIME(SUBSTRING(j2.isys_catg_sla_list__monday_time FROM 9 FOR 5)),' Bis: ', SEC_TO_TIME(SUBSTRING(j2.isys_catg_sla_list__monday_time FROM 20 FOR 5)),'\n',
'Dienstag Von: ',SEC_TO_TIME(SUBSTRING(j2.isys_catg_sla_list__tuesday_time FROM 9 FOR 5)),' Bis: ', SEC_TO_TIME(SUBSTRING(j2.isys_catg_sla_list__tuesday_time FROM 20 FOR 5)),'\n',
'Mittwoch Von: ',SEC_TO_TIME(SUBSTRING(j2.isys_catg_sla_list__wednesday_time FROM 9 FOR 5)),' Bis: ', SEC_TO_TIME(SUBSTRING(j2.isys_catg_sla_list__wednesday_time FROM 20 FOR 5)),'\n',
'Donnerstag Von: ',SEC_TO_TIME(SUBSTRING(j2.isys_catg_sla_list__thursday_time FROM 9 FOR 5)),' Bis: ', SEC_TO_TIME(SUBSTRING(j2.isys_catg_sla_list__thursday_time FROM 20 FOR 5)),'\n',
'Freitag Von: ',SEC_TO_TIME(SUBSTRING(j2.isys_catg_sla_list__friday_time FROM 9 FOR 5)),' Bis: ', SEC_TO_TIME(SUBSTRING(j2.isys_catg_sla_list__friday_time FROM 20 FOR 5)),'\n',
'Samstag Von: ',SEC_TO_TIME(SUBSTRING(j2.isys_catg_sla_list__saturday_time FROM 9 FOR 5)),' Bis: ', SEC_TO_TIME(SUBSTRING(j2.isys_catg_sla_list__saturday_time FROM 20 FOR 5)),'\n',
'Sonntag Von: ',SEC_TO_TIME(SUBSTRING(j2.isys_catg_sla_list__sunday_time FROM 9 FOR 5)),' Bis: ', SEC_TO_TIME(SUBSTRING(j2.isys_catg_sla_list__sunday_time FROM 20 FOR 5))) AS 'SLA Servicezeiten',
j2.isys_catg_sla_list__description AS 'Beschreibung'
FROM isys_obj AS obj_main
INNER JOIN isys_cmdb_status AS obj_main_status ON obj_main_status.isys_cmdb_status__id = obj_main.isys_obj__isys_cmdb_status__id
LEFT JOIN isys_catg_sla_list AS j2 ON j2.isys_catg_sla_list__isys_obj__id = obj_main.isys_obj__id
LEFT JOIN isys_sla_service_level AS j1 ON j1.isys_sla_service_level__id = j2.isys_catg_sla_list__isys_sla_service_level__id
LEFT JOIN isys_catg_global_list AS j6 ON j6.isys_catg_global_list__isys_obj__id = obj_main.isys_obj__id
LEFT JOIN isys_purpose AS j5 ON j5.isys_purpose__id = j6.isys_catg_global_list__isys_purpose__id
LEFT JOIN isys_obj_type AS j9 ON j9.isys_obj_type__id = obj_main.isys_obj__isys_obj_type__id
WHERE TRUE
AND ( (j9.isys_obj_type__id = '45' )) AND ( (obj_main.isys_obj__title = 'Mailoptimizer' )) ORDER BY obj_main.isys_obj__id ASC;
Grüße und vielen Dank für die Hilfe.
Stephan