sql >> Database teknologi >  >> RDS >> Mysql

simpel drejning af kolonner til rækker i MySql

select 'A' as title1, a as title2 from table union all
select 'B' as title1, b as title2 from table union all
select 'C' as title1, c as title2 from table union all
select 'D' as title1, d as title2 from table



  1. Brug af IS NULL eller IS NOT NULL på joinbetingelser - Teorispørgsmål

  2. Sådan fungerer funktionen QUOTENAME() i SQL Server (T-SQL)

  3. Import af flere csv-filer til mysql-tabeller

  4. Android Pushing-opdateringer i Play Butik