YamPiz サービス
       
       
      シェア
       
      Blog /

      Mysql 備忘錄

      Previous
      Next
      Context
      Mysql 備忘錄

      mysql string function 字串函數

      Name Description
      ASCII() Return numeric value of left-most character
      BIN() Return a string representation of the argument
      BIT_LENGTH() Return length of argument in bits
      CHAR_LENGTH() Return number of characters in argument
      CHAR() Return the character for each integer passed
      CHARACTER_LENGTH() A synonym for CHAR_LENGTH()
      CONCAT_WS() Return concatenate with separator
      CONCAT() Return concatenated string
      ELT() Return string at index number
      EXPORT_SET() Return a string such that for every bit set in the value bits, you get an on string and for every unset bit, you get an off string
      FIELD() Return the index (position) of the first argument in the subsequent arguments
      FIND_IN_SET() Return the index position of the first argument within the second argument
      FORMAT() Return a number formatted to specified number of decimal places
      HEX() Return a hexadecimal representation of a decimal or string value
      INSERT() Insert a substring at the specified position up to the specified number of characters
      INSTR() Return the index of the first occurrence of substring
      LCASE() Synonym for LOWER()
      LEFT() Return the leftmost number of characters as specified
      LENGTH() Return the length of a string in bytes
      LIKE Simple pattern matching
      LOAD_FILE() Load the named file
      LOCATE() Return the position of the first occurrence of substring
      LOWER() Return the argument in lowercase
      LPAD() Return the string argument, left-padded with the specified string
      LTRIM() Remove leading spaces
      MAKE_SET() Return a set of comma-separated strings that have the corresponding bit in bits set
      MATCH Perform full-text search
      MID() Return a substring starting from the specified position
      NOT LIKE Negation of simple pattern matching
      NOT REGEXP Negation of REGEXP
      OCTET_LENGTH() A synonym for LENGTH()
      ORD() Return character code for leftmost character of the argument
      POSITION() A synonym for LOCATE()
      QUOTE() Escape the argument for use in an SQL statement
      REGEXP Pattern matching using regular expressions
      REPEAT() Repeat a string the specified number of times
      REPLACE() Replace occurrences of a specified string
      REVERSE() Reverse the characters in a string
      RIGHT() Return the specified rightmost number of characters
      RLIKE Synonym for REGEXP
      RPAD() Append string the specified number of times
      RTRIM() Remove trailing spaces
      SOUNDEX() Return a soundex string
      SOUNDS LIKE(v4.1.0) Compare sounds
      SPACE() Return a string of the specified number of spaces
      STRCMP() Compare two strings
      SUBSTR() Return the substring as specified
      SUBSTRING_INDEX() Return a substring from a string before the specified number of occurrences of the delimiter
      SUBSTRING() Return the substring as specified
      TRIM() Remove leading and trailing spaces
      UCASE() Synonym for UPPER()
      UNHEX()(v4.1.2) Convert each pair of hexadecimal digits to a character
      UPPER() Convert to uppercase

      常用指令:

      • 檢查及修復資料庫
        myisamchk /path/*/*.MYI
        myisamchk --extend-check /path/*/*.MYI
      • This is a declared original article, to respect the copyright, please do not repost this article without the consent of the author.
      • Keywords : Return(28), string(18), specified(14), number(11), argument(10), substring(7), position(5), characters(5), character(5), spaces(4), index(4), first(4), REGEXP(4), value(3), synonym(3), matching(3), Synonym(3), Remove(3), trailing(2), times(2)
      0 0
      2012-06-01T12:51:00+0000

      Comment
       
      コードの検証

      Facebook Page

      Blog Directory

      • 魚戀秋波 Neil Y.K.'s Blog
        • 心情‧日記
        • Creation
        • My Jobs
          • 黑族
          • 接案工程
          • 電腦維修
          • 商業美工
          • 備忘錄
            • Windows 7 免重裝切換 AHCI 模式
            • CentOS 筆記
            • Win7 備忘錄
            • 清除系統垃圾
            • Mysql 備忘錄
            • CSS 陰影效果
            • JScript 備忘錄
            • CSS 設計備忘錄
            • PHP 程式備忘錄
            • Linux shell 筆記
            • Apache 架設備忘錄
            • CSS Selector 種類簡介
        • Misc DIY
        • Stray notes
        • 玩樂情報
        • 生活話題
        • 經方中醫
        • Unclass

      Blog List

      ページQRコード

      ユーザーガイド
      このウェブページ

      ページQRコード
      QRCode

      訪問者統計

      • 訪問者 : 8,605,451
      • 閲覧 : 8,790,154
      • ビューの深さ : 102.1 %
      • 羊皮紙ヒーロークラブ
        このサービスアーキテクチャとコンテンツサービスプロバイダ。
      • 自動切り替え
        このウェブページは、異なるデバイスに応じて自動的に対応するブラウジングバージョンを切り替え、より良いブラウジング体験を提供します。
      • 提案と間違った返品
        見つけたアイデアや問題点やエラーについて教えてください
      • Comodo Secure
        機密データ伝送は、SSL-2048の認証された暗号化によって採用されます。
      • 著作権
        YamPiz デジタル株式会社すべての権利予約
      • システムバージョン
        V2.2.324
        06 Jun 2025 (GMT+8)