質問するログイン新規登録

回答編集履歴

1

修正

2017/12/16 04:37

投稿

退会済みユーザー
answer CHANGED
@@ -1,7 +1,7 @@
1
1
  ```sql
2
- UPDATE `site` a SET
2
+ UPDATE `site` SET
3
- `incount` = select count(*) as cnt from incount where referer LIKE CONCAT('%', `site`.`sitedomain`, '%')
3
+ `incount` = (select count(*) as cnt from incount where referer LIKE CONCAT('%', `site`.`sitedomain`, '%'))
4
- , `outcount` = select count(*) as cnt from incount where referer LIKE CONCAT('%', `site`.`sitedomain`, '%')
4
+ , `outcount` = (select count(*) as cnt from incount where referer LIKE CONCAT('%', `site`.`sitedomain`, '%'))
5
5
  ```
6
6
 
7
7
  多分これで、行けると思う。