David Higgs
Programmer
I am trying to update a record in a MySQL Database using the following code:
A couple of questions,
(1) is there a limit to the number of fields (I have over 100 fields to update) that can be updated using this code? I am getting a errors when I add further fields.
(2) Should I be looking at another way of Updating the MySQL Database?
Regards,
David.
Recreational user of VFP.
Code:
SQLEXEC(SQLCONN,"Update &TBL_Logbook SET " + ;
"COL_BAND = '&Band'," + ; && 9 COL_BAND
"Col_CALL = '&Callsign'," + ; && 12 COL_CALL
"Col_CHECK = '&Check'," + ; && 13 COL_CHECK (Contest)
"Col_CLASS = '&Class'," + ; && 14 COL_CLASS (Contest)
"Col_CNTY = '&county'," + ; && 15 COL_CNTY
"Col_COMMENT = '&comments'," + ; && 16 COL_COMMENT
"Col_CONT = '&Cont'," + ; && 17 COL_CONT
"Col_CONTACTED_OP = '&Contacted_OP'," + ; && 18 COL_CONTACTED_OP
"Col_CONTEST_ID = '&CONTEST_ID'," + ; && 19 COL_CONTEST_ID (Contest)
"Col_COUNTRY = '&Country'," + ; && 20 COL_COUNTRY
"Col_CQZ = '&CQZ'" + ; && 21 COL_CQZ
" Where Col_Primary_Key = '&Pri_key'")
A couple of questions,
(1) is there a limit to the number of fields (I have over 100 fields to update) that can be updated using this code? I am getting a errors when I add further fields.
(2) Should I be looking at another way of Updating the MySQL Database?
Regards,
David.
Recreational user of VFP.