Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Not a Bug
-
None
-
None
-
Windows 10
-
1.0.7
Description
Code
nowym = datetime.now().strftime('%Y%m')
sql = f"SELECT distinct clientID FROM zgx_forecasting WHERE date_format(STR_TO_DATE(concat(Jaar,'',Maand,'-01'),'%Y%m-%d'),'%Y%m')>='
csr.execute(sql)
returns mariadb.OperationalError: Unknown MySQL error
Code
sql = f"SELECT distinctrow clientID FROM zgx_forecasting WHERE date_format(STR_TO_DATE(concat(Jaar,'
' AND Productiviteitscode IN ('1','3','5','7','9') order by clientID"
csr.execute(sql)
returns 388 rows
Does python/connector support distinctrow only?