随笔分类 -  【MySql】

Mysql database
不可不知的mysql 常用技巧总结
摘要:## 不可不知的mysql 常用技巧总结### mysql常用命令```sqlmysqld --启动mysql数据库show databases; -- 查看数据库use database; -- 选择数据库show tables; -- 查看表desc tableName; -- 查看表结... 阅读全文
posted @ 2014-02-28 16:23 Frank.Fan 阅读(705) 评论(0) 推荐(0)
Mysql分页之limit用法与limit优化
摘要:Mysql limit分页语句用法与Oracle和MS SqlServer相比,mysql的分页方法简单的让人想哭。--语法:SELECT * FROM table LIMIT [offset,] rows | rows OFFSET offset--举例:select * from table limit 5; --返回前5行select * from table limit 0,5; --同上,返回前5行select * from table limit 5,10; --返回6-15行如何优化limit当一个查询语句偏移量offset很大的时候,如select * from table l 阅读全文
posted @ 2013-10-04 11:30 Frank.Fan 阅读(74714) 评论(3) 推荐(1)