Concat within a table
-
This will be similar to other Concatenate posts I’ve seen, but I have a specific need I’m hoping the community can address
I have a table (People), in which I need to concatenate LastName & FirstName into a DisplayName field for use in other tables. I have attempted to do this in two ways, both of which have failed with the same statement:
1. I tried inserting a SQL statement within the Table Designer2. I tried inserting the same SQL statement in phpmyadmin as the “As Defined:” value
Here is the SQL I’m attempting to use.
SELECT
LastName
,Firstname
, Concat(LastName,", ",FirstName) asDisplayName
FROMPeople
where ID > 0ANY help would be appreciated either on the WP Data Access or phpmyadmin side.
The page I need help with: [log in to see the link]
- The topic ‘Concat within a table’ is closed to new replies.