Some questions
Posted: Sun 18 Nov 2012 13:51
I am currently a registered user LiteDAC and MyDAC.
And I say that the components are great.
At the same time I am still a student and I'm learning database, devart components currently.
So I have some questions:
1) To do an insert using LiteDAC I edit the field "LiteQuery.SQL.Text" and call the LiteQuery.Execute. Exists a index field index (autoincrement). Can I get the last index registered without making a new query?
2) In delphi I've kind "TDateTime = Now;". It is a variable of type Double. It's a good idea to use as a Double index to speed up the search? What happens is the following:
- I have a table with 2 fields. "time as DATETIME, name as VARCHAR".
- I need to make a query as fast as possible from a given TDateTime to another. For example between Monday to 12:00 Tuesday Ater 09:00.
What is the correct way to do this quickly and using SQLite with LiteDAC?
I know this second question escapes a little of not topic because it's not directly involves the component of Devart. But I would like to share the experience and opinion of you.
Best regards,
And I say that the components are great.
At the same time I am still a student and I'm learning database, devart components currently.
So I have some questions:
1) To do an insert using LiteDAC I edit the field "LiteQuery.SQL.Text" and call the LiteQuery.Execute. Exists a index field index (autoincrement). Can I get the last index registered without making a new query?
2) In delphi I've kind "TDateTime = Now;". It is a variable of type Double. It's a good idea to use as a Double index to speed up the search? What happens is the following:
- I have a table with 2 fields. "time as DATETIME, name as VARCHAR".
- I need to make a query as fast as possible from a given TDateTime to another. For example between Monday to 12:00 Tuesday Ater 09:00.
What is the correct way to do this quickly and using SQLite with LiteDAC?
I know this second question escapes a little of not topic because it's not directly involves the component of Devart. But I would like to share the experience and opinion of you.
Best regards,