↧
Here's some actually running code I tried out quickly:
CLEAR *** It's important to get the driver to match *** what is installed on your machine lcConnect = "DRIVER={MySQL ODBC 5.2w Driver};" +; "SERVER=127.0.0.1;" + ; "DATABASE=Test;" +; "USER=rstrahl;" +; "PASSWORD=wwind;" +; "OPTION=3;" ? lcConnect SET CLASSLIB to wwSQL Additive loSql = CREATEOBJECT("wwSql") IF (!loSql.Connect(lcConnect)) ? loSql.cErrorMsg RETURN ENDIF lcCompany = "West Wind" lnCount = loSql.Execute("select * from customers where company=?lcCompany") ? lnCount ? loSql.cErrorMsg lcCompany = "East Wind" ldUpdated = DateTime() llSuccess = loSql.ExecuteNonQuery("insert into Customers (company,updated) values (?lcCompany,?ldUpdated)")
+++ Rick ---