funzione trim

R

ringo

Salve a tutti,

non esiste la funzione trim per eliminare gli spazi vuoi in sql server?

Questa select non funziona:

SELECT trim(cli.COGNOME) + trim(cli.NOME) as NOMINATIVO FROM
dbage_server.DBAGE.dbo.CLIENTE as cli


grazie!

ringo
 
S

Sylvain Lafontaine

You may use a combination of LTRIM and RTRIM as a replacement for the
function TRIM:

select RTRIM (LTRIM (cli.COGNOME)) + ....

S. L.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top