티스토리 뷰
728x90
    
    
  UPDATE table_users
    SET cod_user = (case when user_role = 'student' then '622057'
                         when user_role = 'assistant' then '2913659'
                         when user_role = 'admin' then '6160230'
                    end),
        date = '12082014'
    WHERE user_role in ('student', 'assistant', 'admin') AND
          cod_office = '17389551';MySQL - UPDATE multiple rows with different values in one query
I am trying to understand how to UPDATE multiple rows with different values and I just don't get it. The solution is everywhere but to me it looks difficult to understand. For instance, three upda...
stackoverflow.com
728x90
    
    
  '공부' 카테고리의 다른 글
| [Python] counter (0) | 2020.04.26 | 
|---|---|
| [Git] pull & push don't ask password (0) | 2020.04.26 | 
| [Python] split string to char (0) | 2020.04.26 | 
| [Maven] MissingProjectException (0) | 2020.04.26 | 
| [Java] Spring Boot jar (0) | 2020.04.26 | 
					댓글
						
					
					
					
				
			250x250
    
    
  
										공지사항
										
								
							
								
								
									최근에 올라온 글
									
							
								
								
									최근에 달린 댓글
									
							
								
								- Total
- Today
- Yesterday
									TAG
									
							
								
								- 레퍼럴
- 모델 Y 레퍼럴
- 테슬라 리퍼럴 코드 혜택
- 테슬라 리퍼럴 코드 생성
- 연애학개론
- 유투브
- Kluge
- 테슬라 레퍼럴 적용 확인
- 테슬라
- 클루지
- 할인
- Bot
- 인스타그램
- 테슬라 추천
- 김달
- 메디파크 내과 전문의 의학박사 김영수
- 모델y
- 책그림
- 테슬라 리퍼럴 코드
- 개리마커스
- wlw
- COUNT
- follower
- 테슬라 레퍼럴
- 테슬라 크레딧 사용
- 팔로워 수 세기
- 어떻게 능력을 보여줄 것인가?
- 테슬라 레퍼럴 코드 확인
| 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 | 
| 12 | 13 | 14 | 15 | 16 | 17 | 18 | 
| 19 | 20 | 21 | 22 | 23 | 24 | 25 | 
| 26 | 27 | 28 | 29 | 30 | 31 | 
									글 보관함