我正在尝试从我的Web应用程序中捕获长,纬度和文本数据并将其保存在我的数据库中。但是,如果我使用以下sql语句,我会收到错误消息:
ProgrammingError: Incorrect number of bindings supplied. The current
statement uses 1, and there are 3 supplied.
x = request.form['x']
y = request.form['y']
text = request.args['desc']
conn.execute('''INSERT INTO added_marker
(id, adress, geom)
VALUES (NULL, ?,
GeomFromText('POINT(? ?)', 3857))''' , (text, x, y))
我认为这与'POINT(? ?)'
查询有关,但无法解决。