Answers for "pandas mysql error in query concat with space"

0

pandas mysql error in query concat with space

#Ensure that the space is in single quotes to stop the query string being broken:
clients=pd.read_sql_query("SELECT concat(cl.`Title`, ' ', cl.`FirstNames`, ' ', cl.`Surname`) as ClientName
                          FROM tblClients cl;",conn);
Posted by: Guest on April-07-2021

Python Answers by Framework

Browse Popular Code Answers by Language