Subject | Re: [firebird-support] Re: Detect all currency field in a database |
---|---|
Author | Martijn Tonies |
Post date | 2009-09-22T16:14:53Z |
Hello Stephane,
With regards,
Martijn Tonies
Upscene Productions
http://www.upscene.com
Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!
Database questions? Check the forum:
http://www.databasedevelopmentforum.com
> ok, but in this way how to know in a select result that a field isYou don't know that, it's just a naming convention.
> D_Currency ? i mean from the API
> the purpose is when i doThat's the only way.
>
> select
> myfield
> from
> mytable
>
> know in the query result than myfield is of type D_Currency.
> For now i use the SQLDA.SQLType and SqlScale to know if it's NUMERIC(15,5)
> field or not ...
With regards,
Martijn Tonies
Upscene Productions
http://www.upscene.com
Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!
Database questions? Check the forum:
http://www.databasedevelopmentforum.com