Question

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
Was it helpful?

Solution

Try with:

CAST(field AS VARCHAR(30))
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top