SQL 시퀄라이저 (2021.10.18)

김도형 (르베니아)·2021년 10월 18일
0

TIL

목록 보기
18/38

SQL시퀄라이저에서 쿼리

      const post = 'insert into comments (comment, postId, userId) values(:comment, :postId ,:userId);';
      await sequelize.query(post, {
        replacements: { 
            comment: comment,
            postId : postId,
            userId : user.userId},
            type: sequelize.QueryTypes.INSERT
        }
        );
profile
한다. 간다. 해낸다.

0개의 댓글