실시간 공지및 지갑변동 텔레그램 공지방입니다. 실시간 공지 및 지갑변경, 추가 실시간 제공. 바이낸스는 자동번역 

 

업비트 텔방 : https://t.me/h_upbit_article

 

업비트 거래소 실시간 정보

You can view and join @h_upbit_article right away.

t.me

바이낸스 텔방 (한글번역) https://t.me/h_binance_article

 

바이낸스 공지 (한글번역)

You can view and join @h_binance_article right away.

t.me

빗썸 텔방 https://t.me/h_bithumb_article

 

빗썸 거래소 실시간 정보

You can view and join @h_bithumb_article right away.

t.me

 

Windows에서 mysql installer를 통해 MySQL를 설치하는중에 server install에서 faill이 뜨는경우가 있다.

보통 이경우에는 window를 깔면 깔려있는 

 Visual Studio 2013 Redistributable. 프로그램이 삭제되는경우다 모르고 삭제하는 경우가 대부분이다. 

그래서 웬만하면 Visual Studio프로그램은 제어판에서 지우지 안거나 복구를 하는것을 추천합니다.

log에는 


1: Action 2:51:02: INSTALL. 

1: 1: MySQL Server 5.7 2: {81B27388-3733-4B65-8D84-AD9C9113B498} 

1: Action 2:51:02: FindRelatedProducts. Searching for related applications 

1: Action 2:51:02: AppSearch. Searching for installed applications 

1: Action 2:51:02: LaunchConditions. Evaluating launch conditions 

1: This application requires Visual Studio 2013 Redistributable. Please install the Redistributable then run this installer again. 

1: 1: MySQL Server 5.7 2: {81B27388-3733-4B65-8D84-AD9C9113B498} 3: 3 

1: The action 'Install' for product 'MySQL Server 5.7.20' failed.

이렇게 뜬다 


이경우 아래 링크에 들어가서 86bit랑 64bit를 모두 다운로드 받아야한다 

지금 mysql download는 32bit일것이다. 


https://www.microsoft.com/en-us/download/confirmation.aspx?id=40784

mybatis에서 insert를 할때 pk auto increment값을 반환 받고 싶은 때


마지막 ai 값을 반환 받는 방법이 있겠지만 효율 적이지 않고 코드가 두번이 들어가는 수고가 있다.


mybatis에서 insert시 auto increment값을 반환헤주는 방법이 있다.


<insert id="product_insert" parameterType="map" useGeneratedKeys="true" keyProperty="mk">

INSERT INTO member

(id,

shoptag,

product_name,

product_pid)

VALUES(

#{id},

#{shoptag},

#{product_name},

#{product_pid})

</insert>


여기서 auto increment 값을 mk 컬럼이 존재 한다.


parameter 값에는 


id, shoptag, product_name, product_pid 값만 들어 있지만 

insert 성공시 map안에는

mk, id, shoptag, product_name, product_pid가 들어있다.



+ Recent posts