Android Question RDC how read Last Insert Row from table

Lello1964

Well-Known Member
Licensed User
Longtime User
Hello again,

i want kwow if it's possible use command like "SELECT last_insert_rowid() from ARTICOLI"
i have tryed setting a new command :
sql.num_record=SELECT last_insert_rowid() from ARTICOLI

in config.propetries in RDC but doesn't work.

May i have more information about RDC commands ?

Thanks

Raffaele
 

Lello1964

Well-Known Member
Licensed User
Longtime User
Hello Erel,

Yes i'm using Sqlite.

Connection work, i can read from Pc, but have how read Last insert row from table ?
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
is this of any use ..
B4X:
'now get id of last inserted row
Dim lastID as Int    
lastID = SQL1.ExecQuerySingleResult("SELECT MAX(ID) FROM ARTICOLI")

Cheers mj
 
Upvote 0
Top