回答編集履歴
1
修正
answer
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
```sql
|
|
2
|
-
UPDATE `site`
|
|
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
|
多分これで、行けると思う。
|