[mysql] varchar에 숫자를 넣고 정렬할때 > 팁앤테크

본문 바로가기
사이트 내 전체검색

팁앤테크

[mysql] varchar에 숫자를 넣고 정렬할때

페이지 정보

본문

1. 필드자체를 int 로 바꿔서 입력하는 방법

2. order by wr_9+0 desc

정렬하고자 하는 필드뒤에 +0을 삽입하는 방법 

 

 

추천0

댓글목록

등록된 댓글이 없습니다.

SELECT COUNT(DISTINCT `wr_parent`) AS `cnt` FROM g5_write_tipntech WHERE ((INSTR(LOWER(mb_id2c1), LOWER('l3434'))) ) and (wr_num between -825 and (-825 + 10000))

1054 : Unknown column 'mb_id2c1' in 'where clause'

error file : /bbs/board.php