0
Hello someone can help me with line breaking within a mysql query?
The code goes like this:
CONCAT('Origem -> ',vEnderecoOrigem,' \r\nDestino ->',vEnderecoDestino)
The result:
Origem -> Rua Exemplo Origem Destino -> Rua Exemplo Destino
Expected result:
Origem -> Rua Exemplo Origem
Destino -> Rua Exemplo Destino
I tried the CHAR(10),(13),\n
and I can’t get the expected result. It’s possible to do this?
Note: It is a generator .pdf and .xls, the name is FPDF.
In PHP use the function
nl2br
– Valdeir Psr
How are you doing to check the result? If you’ve tried all this, it’s probably in your application or test, not in the query. Virtually every decent Mysql tool (like the "dead" Mysql Query Browser, for example) lets you see the binary fields to be sure.
– Bacco
I tried with nl2br and it printed <br /> together. Next I am modifying the output values of a report. The application is printing everything ok, the problem is that the addresses are large so I need the line break to facilitate visualization. I’ve used other tools to generate PDFS only this one in particular when I try to insert HTML it doesn’t answer... I have no idea what it might be.
– Daniel Molina
I believe it is not a Mysql operation
– Wees Smith