Sign in to follow this  
Followers 0
autoitxp

sqlite db file locked

3 posts in this topic

Hi

when i execute _SQLite_Exec with UPDATE method it locked database file and update implemented on other mydb.db-journal file ?

Is there any sqlite database example with ADD DELETE UPDATE AND DISPLAY?

Share this post


Link to post
Share on other sites



when i execute _SQLite_Exec with UPDATE method it locked database file and update implemented on other mydb.db-journal file ?

Is there any sqlite database example with ADD DELETE UPDATE AND DISPLAY?

Try the search function, as there are numerous examples posted on this forum.

Beyond that, I can't understand your description of the issue. If your primary language is not English, you might post the description in your own language. Often someone on the forum can translate.

How many databases did you have open at the time? What did the _SQLite_Open() call(s) look like? What did the _SQLite_Query() call look like? How did you determine what actually happened?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Hi

when i execute _SQLite_Exec with UPDATE method it locked database file and update implemented on other mydb.db-journal file ?

Is there any sqlite database example with ADD DELETE UPDATE AND DISPLAY?

To add new row in db:

_SQLite_Exec (DataBase, "INSERT INTO YourTableNameHere (Col1, Col2, Col3) VALUES ('Value1, Valu2, Valu3');")

To show whats in your db use:

_SQlite_Query ($DataBase, "SELECT * FROM YourTableNameHere WHERE ColNameHere = 'WordYourSearching4' ORDER BY ColName ;", $hQuery)

To edit a db:

_SQLite_Exec ($DataBase, "UPDATE YourTableNameHere SET ColNameHere ='UpdateWord' WHERE ColName = 'WordYourSearching4' ;")

To delete:

_SQLite_Exec ($DataBase, "DELETE FROM YourTableNameHere WHERE ColName = 'WordYourSearching4' ;")

The rest of the syntax commands u`ll be able to find it here: http://www.sqlite.org/lang.html

Hope this is what u`ve been looking for.

Cheers

Edited by Synapse

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