prepared-statement - 如何在 Athena 中将准备好的语句与 boto3 结合使用?

标签 prepared-statement boto3 amazon-athena

我正在尝试使用 boto3 在 athena 引擎版本 2 中添加的准备好的语句。我看到了 CreatePreparedStatement 的 api 文档,但没有看到执行准备好的语句的信息 https://docs.aws.amazon.com/athena/latest/APIReference/API_CreatePreparedStatement.html https://docs.aws.amazon.com/athena/latest/ug/querying-with-prepared-statements.html

最佳答案

boto3 Athena documentation目前没有指定直接执行准备好的语句的API。一个可能的解决方法是通过调用 get_prepared_statement() 来获取PreparedStatement 对象。 ,从对象中提取查询语句,并运行start_query_execution()有了它。

关于prepared-statement - 如何在 Athena 中将准备好的语句与 boto3 结合使用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67023267/

相关文章:

java - Athena 从 parquet 模式创建表

php - 使用准备好的语句获取 "wrong parameter count..."错误

python - 从给定标签读取 xml 文件

amazon-web-services - boto3 无法删除 AWS 标签

amazon-web-services - 使用 Athena 查询 s3 中的 AWS firehose 数据 - 无法查询批处理

aws-glue - Aws Glue 目录表保留

php - 使用 select prepared 语句获取用户名

postgresql - pq 驱动程序 : prepared statement does not exist

java - 尝试从数据库接收密码时准备好的语句错误

python - 调用自定义函数时使用 Boto3 Stubber 作为上下文管理器