<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>L. MIS - MySQL函數</title>
    <link>https://mis.linyumo.tw/forum-14-1.html</link>
    <description>Latest 20 threads of MySQL函數</description>
    <copyright>Copyright(C) L. MIS</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Thu, 04 Jun 2026 20:19:03 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://mis.linyumo.tw/static/image/common/logo_88_31.gif</url>
      <title>L. MIS</title>
      <link>https://mis.linyumo.tw/</link>
    </image>
    <item>
      <title>substring-傳回一字串運算式的某一子字串</title>
      <link>https://mis.linyumo.tw/thread-269-1-1.html</link>
      <description><![CDATA[substring(str,pos,len)
說明：
    str：為一文字串的運算式    pos：為一整數直，宣告欲擷取子字串的開始位置
    len：唯一整數直，宣告欲擷取子字串的長度
    詳細使用請觀看範例說明]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Sat, 09 Sep 2023 14:28:57 +0000</pubDate>
    </item>
    <item>
      <title>length-傳回字串長度之值</title>
      <link>https://mis.linyumo.tw/thread-268-1-1.html</link>
      <description><![CDATA[ength(str)
說明：
        str：為一文字串的運算式
        計算str內容之長度，一個中文字在編碼BIG5為二個位元，在UTF8編碼則為三個位元，其餘非中文字之英文及其他字元皆為一位元
        如下圖範例,請自行計算


 ...]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Sat, 09 Sep 2023 14:21:29 +0000</pubDate>
    </item>
    <item>
      <title>ltrim-去除字串前置空白</title>
      <link>https://mis.linyumo.tw/thread-267-1-1.html</link>
      <description><![CDATA[ltrim(str)
說明：
   將一字串前置的連續空白去除
   str：為欲處理之文字串，可為一常數,變數，或是一個欄位
   PS：與 rtrim(str) 函數功能相反
如下圖範例：]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Sat, 09 Sep 2023 14:19:13 +0000</pubDate>
    </item>
    <item>
      <title>reverse-將字串反序輸出</title>
      <link>https://mis.linyumo.tw/thread-265-1-1.html</link>
      <description><![CDATA[reverse(str)
說明：
    將字串由左至右反轉排列
    str：為欲處理之文字串，可為一常數,變數，或是一個欄位
如下圖範例：]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Fri, 08 Sep 2023 01:48:43 +0000</pubDate>
    </item>
    <item>
      <title>rtrim-去除字串後置空白</title>
      <link>https://mis.linyumo.tw/thread-264-1-1.html</link>
      <description><![CDATA[rtrim(str)
說明：
   將一字串後置的連續空白去除
   str:為欲處理之文字串，可為一常數，變數,或是一個欄位
   PS：與 ltrim(str) 函數功能相反
範例說明：
   因此函數為處理後置空白，如後面沒接任何字元，可能無法呈現出其功能,故結合   concat(str)   函數示範
如 ...]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Fri, 08 Sep 2023 01:36:59 +0000</pubDate>
    </item>
    <item>
      <title>concat-將多字串結合成一字串</title>
      <link>https://mis.linyumo.tw/thread-263-1-1.html</link>
      <description><![CDATA[concat(str1,str2,....)
說明：
將多字串結合成單一字串，如果字串中有NULL，則傳回NULL，如果遇到數字，則主動將數字轉為字串
如下圖範例所示：]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Fri, 08 Sep 2023 01:33:47 +0000</pubDate>
    </item>
    <item>
      <title>lower-將大寫字母轉換成小寫字母</title>
      <link>https://mis.linyumo.tw/thread-262-1-1.html</link>
      <description><![CDATA[lower(str)
說明：
    將文字串大寫轉換成小寫
    str：欲將轉換之文字串，可為一常數，變數，或是一個欄位
    PS：與 upper(str) 函數功能相反
如下圖範例：]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Fri, 08 Sep 2023 01:26:15 +0000</pubDate>
    </item>
    <item>
      <title>upper-將小寫字母轉換成大寫字母</title>
      <link>https://mis.linyumo.tw/thread-261-1-1.html</link>
      <description><![CDATA[upper(str)
說明：
    將文字串小寫轉換成大寫
    str：欲將轉換之文字串，可為一常數，變數,或是一個欄位
    PS：與 lower(str) 函數功能相反
如下圖範例：]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Fri, 08 Sep 2023 01:22:56 +0000</pubDate>
    </item>
    <item>
      <title>ascii-將字元轉換成ASCII值</title>
      <link>https://mis.linyumo.tw/thread-260-1-1.html</link>
      <description><![CDATA[ascii(str)
說明：
    將單一字元轉換成ASCII值，如果為一字串只轉換最左邊的字元
    str：欲將轉換之文字串或字元
如下圖範例：
(一)字元示範


(二)字串示範]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Fri, 08 Sep 2023 01:19:42 +0000</pubDate>
    </item>
    <item>
      <title>locate-計算字串第一次出現的位置</title>
      <link>https://mis.linyumo.tw/thread-259-1-1.html</link>
      <description><![CDATA[locate(substr,str,pos)
說明：
        傳回   substr 在 str 中第一次出現的位置或由 pos 位置開始搜尋，傳回 substr 在 str 中第一次出現的位置
        substr：為一欲搜尋的字串
        str：為一搜尋的目的字串
        pos：此為選擇性，不填入會從第一個字元開 ...]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Thu, 07 Sep 2023 06:14:09 +0000</pubDate>
    </item>
    <item>
      <title>replace-字串的取代</title>
      <link>https://mis.linyumo.tw/thread-258-1-1.html</link>
      <description><![CDATA[replace(str,goal_str,rep_str)
說明：
     替換一字串中的子字串
     str：為一欲取代的目標字串
     goal_str：為 str 中的被取代子字串
     rep_str：為取代 goal_str 的子字串
如下圖範例：]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Thu, 07 Sep 2023 06:10:06 +0000</pubDate>
    </item>
    <item>
      <title>abs-絕對值的計算</title>
      <link>https://mis.linyumo.tw/thread-257-1-1.html</link>
      <description><![CDATA[abs(x)
說明：
       傳回一數字的絕對值
       x：為一數字運算式
如下圖範例：]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Thu, 07 Sep 2023 06:08:45 +0000</pubDate>
    </item>
    <item>
      <title>ceiling-傳回一大於或等於一數字運算式的最小整數</title>
      <link>https://mis.linyumo.tw/thread-256-1-1.html</link>
      <description><![CDATA[ceiling(x)
說明：
    傳回大於x的最小整數值,不同等四捨五入法        
    PS：與 floor(x) 函數功能相反
如下圖範例：]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Thu, 07 Sep 2023 06:04:30 +0000</pubDate>
    </item>
    <item>
      <title>sqrt-平方根的計算</title>
      <link>https://mis.linyumo.tw/thread-255-1-1.html</link>
      <description><![CDATA[sqrt(x)
說明：
    傳回一數字運算式的平方根
    x：為一有理數的運算式
如下圖範例：]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Thu, 07 Sep 2023 06:01:11 +0000</pubDate>
    </item>
    <item>
      <title>least-最小數值的比較</title>
      <link>https://mis.linyumo.tw/thread-254-1-1.html</link>
      <description><![CDATA[least(x,y,...)
說明：
    傳回一組數值的最小值
    x,y,...:為數字或字串的運算式   
    PS：與 greatest(x,y,...) 函數功能相反
如下圖範例：]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Thu, 07 Sep 2023 05:58:17 +0000</pubDate>
    </item>
    <item>
      <title>greatest-最大數值的比較</title>
      <link>https://mis.linyumo.tw/thread-253-1-1.html</link>
      <description><![CDATA[greatest(x,y,...)
說明：
    傳回一組數值的最大值
    x,y,...:為數字或字串的運算式
    PS：與 least(x,y,....) 函數功能相反
如下圖範例：]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Wed, 06 Sep 2023 02:20:07 +0000</pubDate>
    </item>
    <item>
      <title>mod-餘數的計算</title>
      <link>https://mis.linyumo.tw/thread-252-1-1.html</link>
      <description><![CDATA[mod(n,m)
說明：
    傳回n除以m的餘數
    n：被除式,為一整數
    m：除數,唯一整數
範例說明：
    計算14/10及22/8之餘數，範例示範如下圖]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Wed, 06 Sep 2023 02:17:12 +0000</pubDate>
    </item>
    <item>
      <title>datofmonth-擷取一日期之日數</title>
      <link>https://mis.linyumo.tw/thread-251-1-1.html</link>
      <description><![CDATA[datofmonth(date)
說明：
    傳回宣告日期的日數
    date：唯一日期型態的運算式
如下圖範例：]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Wed, 06 Sep 2023 02:15:37 +0000</pubDate>
    </item>
    <item>
      <title>month-擷取一日期之月份</title>
      <link>https://mis.linyumo.tw/thread-250-1-1.html</link>
      <description><![CDATA[month(date)
說明：
    傳回宣告日期的月份
    date：唯一日期型態的運算式
如下圖範例：]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Wed, 06 Sep 2023 02:14:11 +0000</pubDate>
    </item>
    <item>
      <title>year-擷取一日期之年份</title>
      <link>https://mis.linyumo.tw/thread-249-1-1.html</link>
      <description><![CDATA[year(date)
說明：
    傳回宣告日期的年份
    date：唯一日期型態的運算式
如下圖範例：]]></description>
      <category>MySQL函數</category>
      <author>admin</author>
      <pubDate>Wed, 06 Sep 2023 02:12:09 +0000</pubDate>
    </item>
  </channel>
</rss>