Node.js sequelize

이건선·2023년 3월 7일
0

Node.js

목록 보기
21/32

  const maxUserId = await Users.findOne({
    order: [["userId", "DESC"]],
  });

// Users테이블을 order 정렬

 await Users.create({ nickname, password, userId });

// Users row생성

 await Posts.update(
        {
          title: title,
          content: content,
        },
        { where: { postId: postId } }
      );

// 특정 Posts update하기
profile
멋지게 기록하자

0개의 댓글