1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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)}`;
Contenus pertinents
- demandé il y a un an
- demandé il y a 2 mois
- Réponse acceptéedemandé il y a 7 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an