Lello1964 Well-Known Member Licensed User Longtime User Aug 24, 2013 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Aug 25, 2013 #2 RDC doesn't do anything special with the commands. It just passes them to the database engine. Are you using a SQLite database? Upvote 0
RDC doesn't do anything special with the commands. It just passes them to the database engine. Are you using a SQLite database?
Lello1964 Well-Known Member Licensed User Longtime User Aug 25, 2013 #3 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
Hello Erel, Yes i'm using Sqlite. Connection work, i can read from Pc, but have how read Last insert row from table ?
mangojack Expert Licensed User Longtime User Aug 25, 2013 #4 is this of any use .. Code: Copy 'now get id of last inserted row Dim lastID as Int lastID = SQL1.ExecQuerySingleResult("SELECT MAX(ID) FROM ARTICOLI") Cheers mj Upvote 0
is this of any use .. Code: Copy 'now get id of last inserted row Dim lastID as Int lastID = SQL1.ExecQuerySingleResult("SELECT MAX(ID) FROM ARTICOLI") Cheers mj