mysql计算两个gps坐标点直接的距离

方法SELECT *, round( st_distance_sphere ( point ( 116.393823, 39.905024 ), point ( `longitude`, `latitude` ) ), 2 ) dis FROM teacher ORDER BY dis参考https://blog.csdn.net/worilb/article/details/124976921

数据库 2022-12-12 PM 243℃ 0条

OpenAI ChatGPT注册

https://blog.csdn.net/duoshehuan6005/article/details/128184450

技术 2022-12-11 AM 247℃ 0条

sessionStorage多标签页无法共享问题解决

https://juejin.cn/post/6968287222831579150https://blog.csdn.net/weixin_43837305/article/details/108751550

Vue,技术 2022-12-10 PM 249℃ 0条

Mysql统计表大小相关命令

统计指定数据库各个表大小SELECT CONCAT(table_schema,'.',table_name) AS 'Table Name', CONCAT(ROUND(table_rows/1000000,4),'M') AS 'Number of Rows', CONCAT(ROUND(data_length/(1024*1024),4),'M') AS 'Data Size',CONCAT(ROUND(index_length/(1024*1024),4),'M') AS 'Index Size', CONCAT(ROUND((data_length+index_length)/(...

数据库 2022-12-07 PM 240℃ 0条

mysql数据库字段内容区分大小写

背景mysql数据库字段内容默认是不区分大小写的解决方法将数据库、数据表或表字段排序规则设置为bin结尾的类型即可示例:参考https://blog.csdn.net/weixin_42046751/article/details/107789377https://www.jianshu.com/p/977d78cfa0cc

数据库 2022-12-03 AM 222℃ 0条

将谷歌插件打包给别人使用

https://blog.csdn.net/qq_32393893/article/details/120535355

技术 2022-12-02 PM 196℃ 0条

Django使用DRF默认datetime时间有T字符的解决方法

背景Django使用DRF开发时,datetime时间格式返回给前端默认中间有个T字符,如2022-12-03T15:00:00解决方法在settings.py中增加如下配置:REST_FRAMEWORK = { 'DATETIME_FORMAT': "%Y-%m-%d %H:%M:%S", }参考http://wjhsh.net/gcgc-p-14024909.html

Django 2022-12-01 PM 247℃ 0条

Python使用Selenium指定用户目录多开谷歌浏览器时报错解决方法

问题Python使用Selenium时指定user-data,并且此时打开的有另外的谷歌浏览器,会报以下错误:(node:14272) UnhandledPromiseRejectionWarning: InvalidArgumentError: invalid argument: user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir原因是自己打开的浏览器和Selenium打开的浏览器在读...

Python,bug记录 2022-11-19 PM 214℃ 0条