Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
データベースからコンテンツを取得している間、最初の列の最初の文字のみが次のように表示されます
SELECT LEFT(`name`, 1) AS first_letter FROM register
データベースから複数の列を取得したい。やっぱりありますか..??
selectステートメントでカンマで区切ってリストするだけです
SELECT LEFT(`name`, 1) AS first_letter_name, LEFT(`second_col`, 1) AS first_col2, LEFT(third_col, 1) AS first_letter_col3, FROM register