我知道有一个 SQL:
样品表:
ID FirstName LastName
1 Jones Smith
2 Paul Tabunjong
3 John Parks
SQL 结果:
ID Name
1 Jones Smith
2 Paul Tabunjong
3 John Parks
现在,是否有可能逆转它?像这样的东西:
样品表:
ID Name
1 Jones Smith
2 Paul Tabunjong
3 John Parks
SQL 结果:
ID FirstName LastName
1 Jones Smith
2 Paul Tabunjong
3 John Parks
另一个:是否有可能有这样的东西:
样品表:
ID CorporateNames
1 Jones Smith; Anna Tomson; Tonny Parker
2 Paul Tabunjong; Poncho Pilato
3 John Parks; Berto Taborjakol
SQL 结果:
ID FirstName LastName
1 Jones Smith
1 Anna Tomson
1 Tonny Parker
2 Paul Tabunjong
2 Poncho Pilato
3 John Parks
3 Berto Taborjakol