Jump to content
UBot Underground

Recommended Posts

Thanks Nick. Very interesting!! I'm going to investigate this alternative too. But when using the paid plugin, question for you, I know how to do an insert into a table, but what's the most effective way to get back the result with a row number right after the entry, from your experience.

 

Frank

Link to post
Share on other sites

This is proll;y the best

 

4 down vote accepted

The SQL statement SELECT max(id) FROM table_name should give you the maximum id. If you're auto-incrementing then this would be the same as the last inserted.

 

source http://stackoverflow.com/questions/13177324/cant-get-the-last-row-id-from-sqlite3-database

 

here is a couple resources for python

 

SQLite Python tutorial really gooood

▶ Python 2.7 Tutorial Pt 12 SQLite - YouTube

 

Hope that helps.

CD

Link to post
Share on other sites
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...