0

I am using libreOffice Base to query an external (access.mdb) database which is predefined and cannot be altered. This is because I get a new database every day and have to create reports based on the included data.

In this database on row is declared as varchar(50) but the values are digital(10,2) and i need those values to calculate some results.

Now I am trying to cast the row into an new digital row, but it fails:

select cast(´myVal´,digital[10,2]) as numVal from ´myTable´

myVal is as mentioned above defined to be varchar[50]

Can anyone tell me how the right syntax for the cast works?

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
Frankk
  • 3
  • 1

1 Answers1

0

With the Hint of Mark I found the right syntax. Its the Syntax of the database system I accessed - means in this case the syntax from the access.mdb

So the right syntax is:

select clng(´myVal´) as numVal from ´myTable´
Frankk
  • 3
  • 1