mirror of
https://github.com/qiurunze123/miaosha.git
synced 2023-11-19 22:41:03 +08:00
Update mysql.md
This commit is contained in:
parent
64732a8cca
commit
dc42df5abb
|
@ -172,7 +172,7 @@
|
||||||
|
|
||||||
12.where 从句禁止对列进行函数转换和计算(导致无法使用相关列的索引)
|
12.where 从句禁止对列进行函数转换和计算(导致无法使用相关列的索引)
|
||||||
|
|
||||||
SELECT(错误写法)
|
SELECT(正确写法)
|
||||||
*
|
*
|
||||||
FROM
|
FROM
|
||||||
miaosha_message
|
miaosha_message
|
||||||
|
@ -180,7 +180,7 @@
|
||||||
create_time >= '20190101'
|
create_time >= '20190101'
|
||||||
AND create_time < '20190102'
|
AND create_time < '20190102'
|
||||||
|
|
||||||
SELECT (正确写法)
|
SELECT (错误写法)
|
||||||
*
|
*
|
||||||
FROM
|
FROM
|
||||||
miaosha_message
|
miaosha_message
|
||||||
|
@ -220,4 +220,4 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user