Community journal

The latest from the MySQL community

Ideas, releases, practical guides, and perspectives from the people building with MySQL.

Follow the feed
Showing entries 2131 to 2140 of 15691 « Previous | Next »
第 9 章 Optimization

目录 9.1. 打开表的数量 9.2. Buffering and Caching 9.2.1. Query Cache SELECT Options 9.3. where 优化 9.4. SHOW PROFILE Syntax SQL性能分析器 9.

【mysql】  【性能】  【SQL】  【Cache】  【open】   点击查看原文>

第 8 章 DCL (Data Control Language)

目录 8.1. 锁 8.1.1. 共享锁 8.1.2. 排他锁 8.1.3. 锁 8.1.3.1. 表的加锁与解锁 8.1.3.2. 禁止查询

8.1.4. 锁等待与超时 8.1.4.1. 超时设置 8.

【mysql】  【lock】  【Transaction】  【test】  【update】  【read】   点击查看原文>

8.2. 事务处理和锁定语句

Transactional and Locking Statements

开始事务 begin、start transaction 或者 set autocommit=0 事务的特征:原子性(Atomiocity)、一致性(Consistency)、隔离性(Isolation)和持久性(Durability),这四个特性简称ACID特性。

【mysql】  【innodb】  【数据库】  【电商】  【Transaction】  【test】  【update】   …

[获取更多]
7.6. 数值函数

7.6.1. cast 类型转换

mysql> SELECT cast(SUBSTRING('123456789',1,4) as UNSIGNED) * 100; +--------------------------------------------------...

【mysql】  【函数】   点击查看原文>

7.7. Control Flow Functions

CASE mysql> SELECT CASE 1 WHEN 1 THEN 'one' -> WHEN 2 THEN 'two' ELSE 'more' END; -> 'one' mysql> SELECT CASE WHEN 1>0 THEN 'true...

【mysql】  【test】   点击查看原文>

7.4. String

7.4.1. LEFT/RIGHT

LEFT(str,len) mysql> select left(concat('1','0000000'),5) as number; +--------+ | number | +--------+ | 10000 | +--------+ 1 row in set (0.

【mysql】  【string】  【Mobile】   点击查看原文>

7.5. Date and Time

SELECT NOW(),CURRENT_TIMESTAMP(),SYSDATE();

7.5.1. year/month/day hour:minite:second

mysql> select year('2012-03-20'); +------------...

【mysql】  【Group】   点击查看原文>

第 6 章 SQL Statement Syntax

Structured Query Language

目录 6.1. DISTINCT 6.2. group by 6.3. HAVING 6.4. REGEXP 6.5. IN / NOT IN 6.

【mysql】  【SQL】  【Group】  【csv】   点击查看原文>

4.10. 事件调度器(EVENT)

4.10.1. 启用 EVENT

set GLOBAL event_scheduler=ON; my.cnf 配置 event_scheduler=on 查看状态 mysql> select @@GLOBAL.

【mysql】  【events】  【index】  【Create】  【database】  【varchar】   点击查看原文>

4.7. 存储过程(PROCEDURE)

4.7.1. 存储程序

存储过程没有返回数据,需使用call proc()调用 CREATE DEFINER=`neo`@`%` PROCEDURE `angelfund`(IN `puid` VARCHAR(50), IN `ptime` DATETIME) LANGUAGE ...

【mysql】  【SQL】  【test】  【Create】  【存储过程】  【varchar】   点击查看原文>