Jump to content
Sign in to follow this  
jjj

delete row from sqlite using SQLiteExeAU3 by randallc

Recommended Posts

I am trying to delete an entire row from a table in a sqlite database using this udf. I am not sure what all of the commands do, so the only thing i can think of is writing "" to each of the table's entries for the row that I want to delete, but that isn't quite what I want to do.

Can anyone who knows this udf or sqlite suggest an approach for me to take?

Thanks!

Share this post


Link to post
Share on other sites

Hi,

i have not had much interest in this, so documentation minimal;

if you have version ";SqliteExe.au3 v 3_3_5_12"

then

_SQL_DeleteRow(byref $sDB1, $sDBTable1,$s_Prepare,$i_Execute=1)

Best, Randall

Share this post


Link to post
Share on other sites

wait, one more question...

how would I form the $s_prepare = ?

I want to delete a row that has a unique number under the heading "oid". Would I do this:

$s_prepare = "SELECT * from" & $sDbTable1 & "WHEERE oid=" & $oid & "';"

EDIT: I just figured it out:

$s_Prepare = " WHERE oid='"& $oid & "';"

_SQL_DeleteRow($sDB, $sDBTable1,$s_Prepare,1)

Thanks!

Edited by jjj

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  

×
×
  • Create New...