Hi,
For a variety of reasons I cannot use an AutoInc field so want to use the inbuilt RowID of SQLite as I need a unique Record-identifier.
I tried using tblLocate('RowID',aRowID,[]); but it returns an error and crashes.
How can I use that RowID?
SQLite3 RowID not visible to Zeos?
SQLite3 RowID not visible to Zeos?
Ubuntu 14.04-LTS, Acer i5, 6GB, 256GB-SSD, Lazarus 1.6.2, Zeos 7.1
Re: SQLite3 RowID not visible to Zeos?
@ToodleDoo,
select rowid,* from table
Michal
select rowid,* from table
Michal
Re: SQLite3 RowID not visible to Zeos?
Thanks, but I am converting some Delphi stuff over and it was all written using Dataware and almost no real SQL stuff. I'd have to rewrite tons of stuff.miab3 wrote:select rowid,* from table
Doing it free for a friend so do not wan to spend a several days on it.
Ubuntu 14.04-LTS, Acer i5, 6GB, 256GB-SSD, Lazarus 1.6.2, Zeos 7.1
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: SQLite3 RowID not visible to Zeos?
Hello ToodleDoo,
as far as I know the RowID column is a more or less hidden column that you only can get access to by explicitly selecting it. Zeos will not automatically change your SQL for you. So either you find some option in sqlite to enable returning RowID at all times or you live without RowID or you modify your code to explicitly select it when you need it.
Best regards,
Jan
as far as I know the RowID column is a more or less hidden column that you only can get access to by explicitly selecting it. Zeos will not automatically change your SQL for you. So either you find some option in sqlite to enable returning RowID at all times or you live without RowID or you modify your code to explicitly select it when you need it.
Best regards,
Jan