Jump to content

delete row from sqlite using SQLiteExeAU3 by randallc


 Share

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!

Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...