随笔分类 -  MySQL

摘要:查询sql隔离级别 阅读全文
posted @ 2017-10-25 22:14 spectrelb 阅读(136) 评论(0) 推荐(0)
摘要:增 增加一张表 mysql CREATE TABLE ( ... )ENGINE=InnoDB DEFAULT CHARSET=utf8; mysql INSERT INTO (`column_name_one column_name_two`) VALUES ('your_value_one',' 阅读全文
posted @ 2017-08-11 10:46 spectrelb 阅读(174) 评论(0) 推荐(0)
摘要:转载:http://www.cnblogs.com/lawdong/archive/2010/08/08/2357903.html ADD ALL ALTER ANALYZE AND AS ASC ASENSITIVE BEFORE BETWEEN BIGINT BINARY BLOB BOTH B 阅读全文
posted @ 2017-07-19 15:15 spectrelb 阅读(156) 评论(0) 推荐(0)
摘要:转载:http://www.cnblogs.com/skillCoding/archive/2011/09/07/2169932.html 本章列出了当你用任何主机语言调用MySQL时可能出现的错误。首先列出了服务器错误消息。其次列出了客户端程序消息。 B.1. 服务器错误代码和消息 转载:http 阅读全文
posted @ 2017-07-19 15:13 spectrelb 阅读(602) 评论(0) 推荐(0)
摘要:转载:http://www.cnblogs.com/gomysql/p/3720123.html 阅读全文
posted @ 2017-07-18 09:43 spectrelb 阅读(113) 评论(0) 推荐(0)
摘要:非常棒的一个微信公众号 转载地址:http://mp.weixin.qq.com/s/4W4iVOZHdMglk0F_Ikao7A 花1分钟时间,了解聚集索引,非聚集索引,联合索引,索引覆盖。 举例,业务场景,用户表,表结构为: t_user( uid primary key, login_name 阅读全文
posted @ 2017-07-17 21:22 spectrelb 阅读(410) 评论(0) 推荐(0)
摘要:非常棒的一个微信公众号 转载地址:https://mp.weixin.qq.com/s/dGcgts4NNTmVQNRT-j2MZw 一、一些常见的SQL实践 (1)负向条件查询不能使用索引 select * from order where status!=0 and stauts!=1 sele 阅读全文
posted @ 2017-07-17 21:16 spectrelb 阅读(189) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/zhongxinWang/p/4262650.html 阅读全文
posted @ 2017-06-22 10:18 spectrelb 阅读(164) 评论(0) 推荐(0)
摘要:1 //lat 纬度在前(范围-90~90) 2 //lng 经度在后(范围-180~180) 3 4 select 5 id,lng,lat,jietime, 6 ROUND( 7 6378.138 * 2 * ASIN( 8 SQRT( 9 POW( 10 ... 阅读全文
posted @ 2017-05-27 16:45 spectrelb 阅读(812) 评论(0) 推荐(0)
摘要:SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc, cr... 阅读全文
posted @ 2017-05-02 10:50 spectrelb 阅读(1243) 评论(0) 推荐(0)