1 個回答
- 最新
- 最多得票
- 最多評論
0
Amazon Timestream does not support parameterized queries natively, and the PrepareQuery API method is meant for query validation and not for storing or using prepared statements. You can use the following as a workaround and sanitize your inputs
import { escape } from 'mysql';
let userId = getUserInput();
let query = `SELECT * FROM users WHERE id = ${escape(userId)}`;
相關內容
- 已提問 7 個月前
- 已提問 1 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 年前