我正在尝试使用可选参数来检索数据。
first_name = request.form.get('first_name')
last_name = request.form.get('last_name')
用户可以输入两个或至少一个名称。 如何在GQL上实现这一点?
result = Tester.gql("WHERE (first_name IS NULL OR first_name = :first_name)"
"AND (last_name IS NULL OR last_name = :last_name)", first_name=first_name, last_name=last_name)
上面的代码出现错误
"Parse Error: Invalid WHERE Identifier at symbol ("