1 Answer
- Newest
- Most votes
- Most comments
0
【以下的回答经过翻译处理】 你好, 如文档中所述(https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html),参数应该以:parameter的格式在sql语句中进行输入。
根据文档,你的代码应该长这样:
response = rs_client.execute_statement(
ClusterIdentifier='my_cluster_name',
Database='my_db_name',
DbUser='my_user'',
Sql='call my_schema.this_is_my_proc(:in_param)',
Parameters=[{'name': 'in_param', 'value': '此为参数'}],
StatementName='测试存储过程调用'
)
希望这可以帮到你
Relevant content
- asked a month ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago