Jump to content

Delete A SQL Table


Recommended Posts

@@Kenix, that's SQLite xD
executeSQLQuery ( "DROP TABLE testtable" ); 

Edit: Ok, you changed already.. Anyway, you don't need `` in SQLite.

Doing That Doesnt Work It Says The Table Dont Exist And I DOnt MEan Sqlite I Mean The SQL You Get With XAMPP

Edited by Guest
Link to comment
@@Kenix, that's SQLite xD
executeSQLQuery ( "DROP TABLE testtable" ); 

Edit: Ok, you changed already.. Anyway, you don't need `` in SQLite.

Doing That Doesnt Work It Says The Table Dont Exist And I DOnt MEan Sqlite I Mean The SQL You Get With XAMPP

I Mean The SQL You Get With XAMPP

That's MySQL xD

Edited by Guest
Link to comment

My bad:/

I didn't read first post better.

Your table not exists in registry.db ( all executeSQL .. functions working only with registry.db )

Also in XAMPP included

Apache

MySQL

PHP

Perl.

Where you see sqlite? You working with mysql ...

So use this functions:

https://wiki.multitheftauto.com/wiki/DbConnect

https://wiki.multitheftauto.com/wiki/DbExec

https://wiki.multitheftauto.com/wiki/DestroyElement

Edited by Guest
Link to comment

He need use only ( for delete table )

  
local uConnection = dbConnect(  
-- arguments here 
) -- connect to db 
  
dbExec ( uConnection, "DROP TABLE `testtable`" ) -- request 
destroyElement( uConnection ) -- close connection 
  

Link to comment

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
  • Recently Browsing   0 members

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