
Mysql
wx_Jum
这个作者很懒,什么都没留下…
展开
-
根据经纬度查找附近的人
SELECT author_id, # 用户id last_latitude, # 经度 last_longitude, #纬度 ( 3959 * acos ( cos ( radians(22.516218) ) * cos( radians( last_latitude ) ) * cos( radians( last_longitude ) - radians(113.907005) ) + sin ( ra原创 2020-11-13 15:31:41 · 440 阅读 · 0 评论 -
canal和maxwell对比
什么是Canal?什么是Maxwell?Canal和Maxwell对比| 特点 | Canal | Maxwell |原创 2019-04-14 18:01:37 · 8258 阅读 · 3 评论 -
不使用触发器创建更新时间
ALTER TABLE `dgdata`.`test` ADD COLUMN `update_time` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) AFTER `value`,ADD INDEX `update_time`(`update_time`) USING BTREE;...原创 2019-05-05 14:23:00 · 201 阅读 · 0 评论 -
phoenix 创建表 Order of columns in primary key constraint must match the order in which they're
今天在phoenix 创建表时遇到 ERROR 1004 (42J02): Order of columns in primary key constraint must match the order in which they're declared. columnName=TB_TOURISAATS.ACT_TIMMI这种错误原SQL语句CREATE TABLE tb_test( u...原创 2019-05-17 16:41:56 · 650 阅读 · 0 评论