struct dict {
int count;
struct dist *childs[32];
};
SELECT `id`, `position` FROM `test`
+----+----------+
| id | position |
+----+----------+
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
+----+----------+
UPDATE `test` SET `positon` = FIND_IN_SET(`id`, '4,2,3,1') WHERE FIND_IN_SET(`id`, '4,2,3,1') != 0
2 row(s) affected
SELECT `id`, `position` FROM `test`
+----+----------+
| id | position |
+----+----------+
| 1 | 4 |
| 2 | 2 |
| 3 | 3 |
| 4 | 1 |
+----+----------+
ST_DWithin(location, ST_GeomFromText('POINT(120.9982 24.788)', 100)
dв этом случае вроде работает нормально. ST_DWithin(location::geography , ST_GeomFromText('POINT(120.9982 24.788)',4326)::geography , 100)