Hello, It’s a Oracle SQL.
I could use REPLACE in request, but there’s a lot of field/table and I’d like to find a generic solution for all. Maxime Lézier Leader CloudOps Flux ITNOVEM PARTENAIRE TECHNOLOGIQUE SNCF 19 rue d’Amiens, 59800 Lille [email protected]<mailto:[email protected]> LD OPS FLUX : [email protected]<mailto:[email protected]> De : Christopher J. Amatulli via users <[email protected]> Date : mardi, 10 janvier 2023 à 12:53 À : [email protected] <[email protected]> Objet : RE: SQL - Record - Remove newline character “which” SQL server are you querying? If it’s MSSQL, this is best done through TSQL (REPLACE(REPLACE(@str, CHAR(13), ' '), CHAR(10), ' ')) Replace a newline in TSQL - Stack Overflow<https://urldefense.com/v3/__https:/stackoverflow.com/questions/951518/replace-a-newline-in-tsql__;!!Nto2ANp9CeU!CbIP4WUJ60KAMT0_rp41qg1YfM5SwsigmY7goCpp21eUNNJ8ROuB_AKWUye3Wl_gKYYegbSs8VVFQ8g4AA$> From: LEZIER Maxime (ITNOVEM) <[email protected]> Sent: Tuesday, January 10, 2023 6:32 AM To: [email protected] Subject: SQL - Record - Remove newline character Hello, We have a usecase where we fetch rows from oracle table. I use the ‘ExecuteSQLRecord’ with a Record Writer type CSV. For some text field, there’s crlf character and my csv is “broken” with the render multiline result. Is there an option in the csv writer for removing “\n” from all fields ? Should I use an UpdateRecord ? What is the better way for removing all new line character inside all field from my results ? I use a NiFi cluster (3 nodes), version 1.15.3 on Ubuntu, java 11. Thanks for your help Maxime Lézier Interne ------- Ce message et toutes les pièces jointes sont établis à l'intention exclusive de ses destinataires et sont confidentiels. L'intégrité de ce message n'étant pas assurée sur Internet, la SNCF ne peut être tenue responsable des altérations qui pourraient se produire sur son contenu. Toute publication, utilisation, reproduction, ou diffusion, même partielle, non autorisée préalablement par la SNCF, est strictement interdite. Si vous n'êtes pas le destinataire de ce message, merci d'en avertir immédiatement l'expéditeur et de le détruire. ------- This message and any attachments are intended solely for the addressees and are confidential. SNCF may not be held responsible for their contents whose accuracy and completeness cannot be guaranteed over the Internet. Unauthorized use, disclosure, distribution, copying, or any part thereof is strictly prohibited. If you are not the intended recipient of this message, please notify the sender immediately and delete it. CONFIDENTIALITY NOTICE - This email message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone, and destroy any hard copies. Interne Interne
