LoginSignup
3
2

More than 5 years have passed since last update.

SQL 文字列を連結する

Last updated at Posted at 2017-05-19

SQL 文字列を連結する

概要

  • SQLで文字列を連結したい場合は、CONCAT関数を使用する
  • 引数には2つ以上の文字列を指定する

構文

CONCAT ( string_value1, string_value2 [, string_valueN ] )  

使用例

example.csv
SELECT CONCAT('ひとよ','ひとよに','ひとみごろ') AS result;

結果

result
ひとよひとよにひとみごろ
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2