Recent Posts
													
											
												
												
													Recent Comments
													
											
												
												
											
									HEROJOON 블로그(히로블)
Mysql 여러 줄 Insert 하기 본문
반응형
    
    
    
  -- 단일 insert하기
INSERT INTO board (id, title, content, user, create_dt)
VALUES  (NULL, 'hello1', 'happy christmas!!1', 'herojoon', NOW());
-- 여러 줄 insert하기
INSERT INTO board (id, title, content, user, create_dt)
VALUES  (NULL, 'hello1', 'happy christmas!!1', 'herojoon', NOW()), 
		(NULL, 'hello2', 'happy christmas!!2', 'herojoon', NOW()), 
		(NULL, 'hello3', 'happy christmas!!3', 'herojoon', NOW());반응형
    
    
    
  'DB' 카테고리의 다른 글
| Mysql 변수 사용하기 (0) | 2023.01.26 | 
|---|---|
| Insert문 실행 후 PK ID 조회하기 (0) | 2023.01.26 | 
| java.sql.SQLException: Incorrect string value: 에러 해결 (0) | 2022.03.29 | 
| Mysql Datetime Function 더하기, 빼기 (1) | 2021.02.02 | 
| Mysql [Error Code: 1175] update safe mode 해제 (0) | 2020.04.21 | 
			  Comments
			
		
	
               
           
					
					
					
					
					
					
				 
            