some questions on sql

cirollo

Active Member
Licensed User
Longtime User
Posted a new discussion, today the search function seems not working :-(

by the way, just some questions:

1) which is the correct syntax for creating a table with a two column index?
looked at some examples but I don't know how to made it.
I'm using:

DBUtils.CreateTable(SQL1, "Listini", m, "Seriale")

to create the table

2) how can I define numeric columns in the db (I need float, not integer because there are decimals!)?
I'm using:

m.Put("ImpUni", DBUtils.DB_TEXT)

this should be a numeric value

3) how can I get the numeric value from a string, also with decimal places?

thanks!
cirollo
 

cirollo

Active Member
Licensed User
Longtime User
thank you Erel!

just another question

if i set the column real type, do I have to specify how many decimals are present?

sorry, I come from Sql where I put myfield N(10,2) for a numeric field with 2 decimals....

thanks!!!


:icon_clap:
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…