Sign in to follow this  
Followers 0
grasshopper3

SQLite UDF Help

9 posts in this topic

I would like to have basic access to a database that I made using SQLite. I have read some of the forums for SQLite and I am not following. I just want to get connected and make insert, update, delete, and select queries from an autoit script. Can someone help me out with the basic code in order to do this. The databases that I am trying to access is in the @scriptdir or point me to a clear and well documented example. Thanks!

Share this post


Link to post
Share on other sites



I feel stupid about this, but where is the help file. I am only familiar with the Online Documentation and I don't see anything about SQL on there. Please don't judge to harshly.

Share this post


Link to post
Share on other sites

I feel stupid about this, but where is the help file. I am only familiar with the Online Documentation and I don't see anything about SQL on there. Please don't judge to harshly.

Don't feel stupid man, the only stupid questions are the ones you don't ask -and everyone else's ;) Everybody starts at the same place, and everyone has had to look for the help at one time or another

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

Study the examples in the help file under "User Defined Functions Reference" >> "SQLite Management".

You'll need _SQLite_Open to make a connection, _SQLite_Exec to issue insert and update statements and _SQLite_GetTable and/or _SQLite_GetTable2d to load the resultset of select queries.

Not knowing what the schema of you DB is makes it a little hard to provide working code for you. So try those functions and ask here again for more precise help or ask SQL/SQLite questions.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

Thanks for all the help. Once I figured out where the help file I was able to get basic SQLite functionality within a hour.

Share this post


Link to post
Share on other sites

Perfect. Don't hesitate to come back in case of difficulty.

Good luck.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0