Here i need insert a some values into postgresql table in python.
I tried below code, but a error which is "psycopg2.ProgrammingError: syntax error at or near "st"\r, referer: http://localhost:8080/"
conn = psycopg2.connect(database="Test", user="dev", password="123456", host="192.168.1.104", port="5432")
cursor = conn.cursor()
cursor.execute('''INSERT INTO signup (id, name, email, dob, address, mobile, password) VALUES (1,%s,%s,%s,%s,%s,%s)''' % (name,email,dob,address,mobile,password))
conn.commit()
Please solve this issue, Thanks in advance.....