Sign in to follow this  
Followers 0
jjj

delete row from sqlite using SQLiteExeAU3 by randallc

4 posts in this topic

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



perfect, thanks!

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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  
Followers 0