I'm trying to do something like this:
Code: Select all
## Query the database for data
put revQueryDatabase( theConnectionID, "UPDATE mammals SET the hilitedline WHERE id=id") into theCursor
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
## Query the database for data
put revQueryDatabase( theConnectionID, "UPDATE mammals SET the hilitedline WHERE id=id") into theCursor
Code: Select all
put "UPDATE " & tTableName && "SET first_name=" "e& tFirstName "e & comma & \
"last_name=" "e& tLastName "e& comma &&\
"mobile_number=" "e& tMob "e& comma &&\
"office_address=" "e& tAddress "e& comma &&\
"thm_img=" "e& tImageData "e &&\
"WHERE id=" & tID into tSQL
revExecuteSQL gConnectionID, tSQL, "tFirstName", "tLastName", "tMob", "tAddress","tImageData"
Code: Select all
put "UPDATE " & mammals & "SET fldwhatis = fld 'fldwhatis' WHERE fldwordis = '" &fld "fldwordis" & "' AND fldpic = '" &fld "fldpic" & "'" into tSQL
revExecuteSQL gConnectionID, tSQL, "fldwhatis","fldwordis","fldpic"
-You are mixing the regular way and the way with variable list (":1", ":2") [look documentation]. It can't work.shawnblc wrote:Not getting this to work, LC gives me the error in the image.
Code: Select all
put "UPDATE " & mammals & "SET fldwhatis = fld 'fldwhatis' WHERE fldwordis = '" &fld "fldwordis" & "' AND fldpic = '" &fld "fldpic" & "'" into tSQL revExecuteSQL gConnectionID, tSQL, "fldwhatis","fldwordis","fldpic"
Code: Select all
put "UPDATE lion SET fldwhatis ='"&fld "fldwhatis" &"' WHERE fldwordis = '" &fld "fldwordis" & "' AND fldpic = '" &fld "fldpic" & "'" into tSQL
answer tSQL
revExecuteSQL gConnectionID, tSQL