mysql select to return blanks for all but first row of repeating column

前端 未结 5 645
独厮守ぢ
独厮守ぢ 2020-12-21 14:17

Is it possible to create a mysql select (directly or using a stored procedure) that will return blanks for repeating columns. For example, a select that would normally retu

5条回答
  •  情深已故
    2020-12-21 14:38

    It seems like it would be a huge waste of resources to not do it through your application, but one way that you could do this is to use PL/SQL in a stored procedure or something similar to populate a some temporary table. With this you could declare a variable for if the name equals the last name that was iterated over. So if the name is a new name add it to the temporary table otherwise do not.

    Again though this is a huge waste of resources

提交回复
热议问题