随笔分类 - MySQL
摘要:增 增加一张表 mysql CREATE TABLE ( ... )ENGINE=InnoDB DEFAULT CHARSET=utf8; mysql INSERT INTO (`column_name_one column_name_two`) VALUES ('your_value_one','
阅读全文
摘要:转载: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
阅读全文
摘要:转载:http://www.cnblogs.com/skillCoding/archive/2011/09/07/2169932.html 本章列出了当你用任何主机语言调用MySQL时可能出现的错误。首先列出了服务器错误消息。其次列出了客户端程序消息。 B.1. 服务器错误代码和消息 转载:http
阅读全文
摘要:转载:http://www.cnblogs.com/gomysql/p/3720123.html
阅读全文
摘要:非常棒的一个微信公众号 转载地址:http://mp.weixin.qq.com/s/4W4iVOZHdMglk0F_Ikao7A 花1分钟时间,了解聚集索引,非聚集索引,联合索引,索引覆盖。 举例,业务场景,用户表,表结构为: t_user( uid primary key, login_name
阅读全文
摘要:非常棒的一个微信公众号 转载地址:https://mp.weixin.qq.com/s/dGcgts4NNTmVQNRT-j2MZw 一、一些常见的SQL实践 (1)负向条件查询不能使用索引 select * from order where status!=0 and stauts!=1 sele
阅读全文
摘要:http://www.cnblogs.com/zhongxinWang/p/4262650.html
阅读全文
摘要: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 ...
阅读全文
摘要: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...
阅读全文

浙公网安备 33010602011771号