substring('字串', 起始位置, 取幾個字)
right('字串', 取右邊數來幾個字)
left('字串', 左邊數來起始位置)
字串截取某段
Related Posts:
MySQL Command 1. 到Mysql Server\bin 2. 執行登入的動作 mysql -u root -p 密碼 3. 出現Welcome to the MySQL monitor. 即可使用 … Read More
過濾重複的字詞sample id name 1 AA 2 BB 3 CC 4 CC 5 DD ------------------------------------------… Read More
字串截取某段substring('字串', 起始位置, 取幾個字) right('字串', 取右邊數來幾個字) left('字串', 左邊數來起始位置) … Read More
如果是空值則給預設值 如果x不是NULL(不包含0),IFNULL()返回x,否則它返回y。 SELECT IFNULL(x, y) IFNULL()返回一個數字或字符串值。 … Read More
Format unixtime 轉換 unixtime,ex. 1416561157 -> 2014-11-21 17:12:37 from_unixtime(1416561157) … Read More
0 意見:
張貼留言