Answer the question
In order to leave comments, you need to log in
Python + SQLite. Delete all found lines?
I have a database with an indefinite number of rows and 9 columns.
I get the lines I need like this:
dbcursor.execute('select * from portscan where ip=?', (hostip,))
rows = dbcursor.fetchall()
dbcursor.execute("delete from portscan where ip='%s'" % hostip)
- it seems to work as it should, but the size of the database does not decrease.
Answer the question
In order to leave comments, you need to log in
> the size of the database does not decrease...
habrahabr.ru/post/172085
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question