SQLite3でアルファベットの大文字を小文字に変換する

環境
Windows 10 Home 64bit
SQLite 3.39.2

構文
LOWER('文字列の値’)
LOWER関数を使用して、アルファベットの大文字を小文字に変換します。

使用例
SQL構文

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
SELECT
LOWER( 'STUDY' ),
LOWER( 'Study' ),
LOWER( 'S1t2u3Dy' );
SELECT LOWER( 'STUDY' ), LOWER( 'Study' ), LOWER( 'S1t2u3Dy' );
SELECT
LOWER( 'STUDY' ),
LOWER( 'Study' ),
LOWER( 'S1t2u3Dy' );

実行結果

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sqlite> SELECT
...> LOWER( 'STUDY' ),
...> LOWER( 'Study' ),
...> LOWER( 'S1t2u3Dy' );
study|study|s1t2u3dy
sqlite> SELECT ...> LOWER( 'STUDY' ), ...> LOWER( 'Study' ), ...> LOWER( 'S1t2u3Dy' ); study|study|s1t2u3dy
sqlite> SELECT
   ...> LOWER( 'STUDY' ),
   ...> LOWER( 'Study' ),
   ...> LOWER( 'S1t2u3Dy' );
study|study|s1t2u3dy

 

SQLite

Posted by arkgame