tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
|
|
@ -0,0 +1,19 @@
|
|||
UseSQLiteDatabase()
|
||||
|
||||
DatabaseFile$ = GetTemporaryDirectory()+"/Batadase.sqt"
|
||||
; all kind of variables for the given case
|
||||
table$ = "players"
|
||||
name$ = "Smith, Steve"
|
||||
score.w = 42
|
||||
active$ ="TRUE"
|
||||
jerseynum.w =99
|
||||
|
||||
If OpenDatabase(0, DatabaseFile$, "", "")
|
||||
Result = DatabaseUpdate((0, "UPDATE "+table$+" SET name = '"+name$+"', score = '"+Str(score)+"', active = '"+active$+"' WHERE jerseyNum = "+Str(num)+";")
|
||||
If Result = 0
|
||||
Debug DatabaseError()
|
||||
EndIf
|
||||
CloseDatabase(0)
|
||||
Else
|
||||
Debug "Can't open database !"
|
||||
EndIf
|
||||
Loading…
Add table
Add a link
Reference in a new issue