DB(SQL) (83) 썸네일형 리스트형 MySQL 현재시간을 기준으로 (+, -) 시간 조회하기 (SUBDATE) # 30분 후 조회 SELECT SUBDATE(NOW(), INTERVAL -30 MINUTE), current_timestamp FROM DUAL; # 30분 전 조회 SELECT SUBDATE(NOW(), INTERVAL 30 MINUTE), current_timestamp FROM DUAL; # 12시간 전 조회 SELECT SUBDATE(NOW(), INTERVAL 12 HOUR) from dual; # 1개월 전 조회 SELECT SUBDATE(NOW(), INTERVAL 12 MONTH) from dual; # 1년 전 조회 SELECT SUBDATE(NOW(), INTERVAL 12 YEAR) from dual; @TODO mysql 과 server의 시간 기준이 다르면 어떻게 될까..? Sequelize 참고 사이트 https://sequelize.org/master/index.html Manual | Sequelize Constraints & Circularities Adding constraints between tables means that tables must be created in the database in a certain order, when using sequelize.sync. If Task has a reference to User, the User table must be created before the Task table can be crea sequelize.org https://velog.io/@cadenzah/sequelize-document-4 Sequelize 공식 Documen.. mysql 자료 및 링크 https://riptutorial.com/ko/mysql RIP Tutorial (Stack Overflow Documentation) Documentation on languages such as C#, Entity Framework, SQL, and a lot of more! riptutorial.com https://riptutorial.com/ko/ 홈페이지에서 제공해주는 mysql tutorial file 이전 1 ··· 8 9 10 11 다음