回答編集履歴

1

修正

2017/12/16 04:37

投稿

退会済みユーザー
test CHANGED
@@ -1,10 +1,10 @@
1
1
  ```sql
2
2
 
3
- UPDATE `site` a SET
3
+ UPDATE `site` SET
4
4
 
5
- `incount` = select count(*) as cnt from incount where referer LIKE CONCAT('%', `site`.`sitedomain`, '%')
5
+ `incount` = (select count(*) as cnt from incount where referer LIKE CONCAT('%', `site`.`sitedomain`, '%'))
6
6
 
7
- , `outcount` = select count(*) as cnt from incount where referer LIKE CONCAT('%', `site`.`sitedomain`, '%')
7
+ , `outcount` = (select count(*) as cnt from incount where referer LIKE CONCAT('%', `site`.`sitedomain`, '%'))
8
8
 
9
9
  ```
10
10