에러문 해석좀.. > 자유게시판

자유게시판

에러문 해석좀.. 정보

에러문 해석좀..

본문

select count(*) as cnt from order by ws_id desc
1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order by ws_id desc' at line 4
error file : /adm/website_list.php
추천
0

댓글 6개

select count(*) as cnt from order by ws_id desc
셀렉트 다음으로 count(*) 만 있습니다. 뒤에 ws_id 로 정렬하라는 명령이 있지만
검색 필드에는 ws_id 가 없습니다. oder by 구문부터 삭제바랍니다.
select count(*) as cnt from order by ws_id desc
에서
select count(*) as cnt from 테이블명 order by ws_id desc 으로 변경되어야 합니다.

select 명령은

"select 필드명 리스트 from 테이블명 where 조건 order by 정렬필드" 입니다.
테이블을 찾지 못하는 오류 같습니다.
ws_id 이면 검색 스킨인데,
config.php 파일에서 지정하지 않았나봅니다.
전체 196,490 |RSS
자유게시판 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT