Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

186
Vistas
SQL select: how to alias only 1 column and leave the rest unaliased

I'm using MySQL 5.6. I have a table named client_info that has many (30~40) columns. I need to select all of those columns, and one of those columns needs to be aliased, while others don't. Here is what I tried:

SELECT clientName as clientNames, * FROM client_info;

This caused a syntax error. Is there a concise way to select all columns and then alias only one column? I don't want to list out all the columns names because there are so many of them.

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda