Pregunta

How do I convert an int column to a varchar in FrontBase SQL? I need to concatenate a varchar and an int field, and I cannot just concatenate them because both arguments need to be a varchar.

I wanted to tag this "Frontbase" but I don't have permission due to reputation < 1500.

Server and database version is 4.2.7

The query looks like this:

select (TVERKOPEN.CPREFIX || CAST(TVERKOPEN.CNUMMER AS VARCHAR)) as PurchaseOrder
from TVERKOPEN
¿Fue útil?

Solución

Try with:

CAST(field AS VARCHAR(30))
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top