I have a variable that using python f-string function:
test = 'hello'
sql2 = f"INSERT INTO EULA_STG_DATA ({test}) VALUES (:1,:2,:3,:4,:5,:6)"
print(sql2 )
output:
'INSERT INTO EULA_STG_DATA (hello) VALUES (:1,:2,:3,:4,:5,:6)'
this code has no problem running in Windows,but once run in Linux,it returns:
SyntaxError: invalid syntax
Any friend can help?