I am updating fields in a database using Concat as follows
`fieldName`=concat( `FieldName`, ',NEW DATA')
In some instances though, I am trying to create a comma separated list in the field, such as
item 1, item 2, item 3
But unless I know whether the field is empty before hand, if this is the first entry in the field I cannot avoid having a preceeding, or trailing comma.
,item 1, item 2...etc
or
item 1, item 2, ... etc
Is there a way I can determine if the field has a content before I do add data, within the Update statement to avoid having the query the database separately?
... or a better way of making a comma separated list!