The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sqlite help
Author Message
azmanomer
Journeyman
*

Posts: 139
Likes Given: 4
Likes Received: 18 in 16 posts
Joined: Nov 2013
Reputation: 1



Post: #1
Sqlite help
I have tables for each accounts and i want to update their one column which are the same name "status" is it possibly to that with one command without for loop? If its not possible than another question is it possible to take a backup db when server save and restore db when i start the sphere?
example;
1th question example
i got "a,b,c,d,e,f,g,h,t,c" tables and they all have status column in sphere_serv_triggers.scp
[FUNCTION f_onserver_save]
ldb.connect
if <ldb.connected>
update all status to 1 where status 0 ---> is this possible?
ldb.close
endif

2th question example
i got database called "spheredb" and "a,b,c,d,e,f,g,h,t,c" tables and they all have status column in sphere_serv_triggers.scp
[FUNCTION f_onserver_save]
ldb.connect
if <ldb.connected>
backup "spheredb" name it "spheredb_backup" ----> is this possible?
ldb.close
endif

[FUNCTION f_onserver_start]
ldb.connect
if <ldb.connected>
restore from "spheredb_backup" to "spheredb" ----> is this possible?
ldb.close
endif


sorry for my english Smile
09-29-2015 08:10 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Sqlite help - azmanomer - 09-29-2015 08:10 AM
RE: Sqlite help - XuN - 09-29-2015, 04:44 PM
RE: Sqlite help - azmanomer - 09-29-2015, 10:22 PM
Re: RE: Sqlite help - Extreme - 09-30-2015, 08:30 AM
RE: Sqlite help - azmanomer - 09-30-2015, 08:49 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)