영카트1 홈페이지에서 아래처럼 3건 이상 주문자 레벨4로 등업시 다음과같은 에러가 발생합니다.
바쁘시겠지만 쿼리 수정좀 부탁드립니다.
수고하세요~~^&^**
보내주신 쿼리 :
update gb_member set mb_level = 4 where mb_id in (select mb_id from yc_order
where mb_id <> '' group by mb_id having count(*) >= 3);
에러 메세지 :
MySQL 메시지:
#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 'select mb_id from yc_order where mb_id <> '' group by mb_id hav
P.S 웹관리자정보는 디비 아이디와 패스워드 입니다.
바쁘시겠지만 쿼리 수정좀 부탁드립니다.
수고하세요~~^&^**
보내주신 쿼리 :
update gb_member set mb_level = 4 where mb_id in (select mb_id from yc_order
where mb_id <> '' group by mb_id having count(*) >= 3);
에러 메세지 :
MySQL 메시지:
#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 'select mb_id from yc_order where mb_id <> '' group by mb_id hav
P.S 웹관리자정보는 디비 아이디와 패스워드 입니다.
댓글 1개
해당 쿼리에 문제는 없습니다.
사용하시는 MYSQL 의 버전이 낮아 이 쿼리를 실행하지 못하는 것으로 보입니다.
저희쪽에서 실행시 아무 이상 없습니다.
mysql> update gb_member set mb_level = 4 where mb_id in (select mb_id from yc_order where mb_id <> '' group by mb_id having count(*) >= 3);
Query OK, 0 rows affected (0.05 sec)
Rows matched: 5 Changed: 0 Warnings: 0
select mb_id, count(*) as cnt from yc_order group by mb_id having cnt >= 3 order by mb_id;
이 쿼리로 조회만 하신 후 수작업으로 레벨을 수정해 주시기 바랍니다.
사용하시는 MYSQL 의 버전이 낮아 이 쿼리를 실행하지 못하는 것으로 보입니다.
저희쪽에서 실행시 아무 이상 없습니다.
mysql> update gb_member set mb_level = 4 where mb_id in (select mb_id from yc_order where mb_id <> '' group by mb_id having count(*) >= 3);
Query OK, 0 rows affected (0.05 sec)
Rows matched: 5 Changed: 0 Warnings: 0
select mb_id, count(*) as cnt from yc_order group by mb_id having cnt >= 3 order by mb_id;
이 쿼리로 조회만 하신 후 수작업으로 레벨을 수정해 주시기 바랍니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 14296 | |
| 14293 | |
| 14290 | |
| 14288 | |
| 14284 | |
| 14282 | |
| 14280 | |
| 14277 | |
| 14275 | |
| 14273 | |
| 14271 | |
| 14269 | |
| 14267 | |
| 14264 | |
| 14262 | |
| 14261 | |
| 14259 | |
| 14257 | |
| 14253 | |
| 14251 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기