Database/MariaDB (1) 썸네일형 리스트형 쿼리 및 DB 작업 정리 # 실행문 다시 실행하기 INSERT INTO record_set VALUES(0, 2, 24, '2022-01-07 15:37:38'); SELECT LAST_INSERT_ID(); # AUTO_INCREMENT 초기화하기 ALTER TABLE table_name AUTO_INCREMENT = {value}; # 랜덤 값 입력 FLOOR(RAND()*(5)+1) # Null 체크 IFNULL(True값, False값), Where [column] is null - null 만, Where [column] # join 문 left join arm_record AS b ON (a.record_seq = b.seq AND a.exercise_type = 0) - ON 안에서 조건을 걸어 쿼리를 만들 때 이전 1 다음