심바의 개발일지

  • 홈
  • 태그
  • 방명록

safe update mode 1

[Mysql] 이름앞에 글자추가하기, 문자열 바꾸기 ( + Error Code:1406, Error Code:1175)

문자열 바꾸기 예를들어 reg_date 컬럼에 있는 내용을 20210310 등을 전부 19960310등으로 바꾸 고싶을때는 update test.brand set reg_date = replace(reg_date,'202102', '199602') where brand_id=1 ; 위와 같이 replace를 사용하여 바꾸고 싶은 컬럼, 바꾸고 싶은 내용, 바뀔 내용 등으로 적용하면 된다. Error Code:1406. Data too long for column 'name' at row 1 위와 같은 에러가 난다면 Data too long for column은 해당 컬럼의 데이터 타입을 보는것이 제일 좋다 CHAR(8)인데 그이상을 넣지는 않았는지 등.. Error Code:1175. You are us..

DB/Mysql 2021.03.10
1
더보기
프로필사진

  • 분류 전체보기 (60)
    • JPA (0)
    • JS (1)
    • SpringBoot (11)
    • Vue (3)
    • DB (1)
      • Mysql (7)
    • Java (4)
    • ngnix (1)
    • Redis (0)
    • 알고리즘 (17)
    • 개발 (10)
    • Kotlin (1)
    • 내 자신에게 해주고 싶은 말 (0)

Tag

HTTP 응답코드, sourcetree access token github, 프로그래머스, how to change repository folder name, Cannot Connect to Database Server, sourcetree github access token, Intellij, MySQL, 500 502 차이, Please use a personal access token instead, change folder name, Queue PrioirtyQueue 시간복잡도, 백준, Vue, sourcetree github not working, while connecting to upstream, rename folder, 폴더 이름바꾸기, Queue PriorityQueue, java,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/10   »
일 월 화 수 목 금 토
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

Copyright © Kakao Corp. All rights reserved.

티스토리툴바