MichaelHooker
Programmer
A very simple theoretical question, I hope. No code is necessary.
If the result on the webpage is to be a concatenation of fields from a MySQL database, is it more efficient to use CONCAT in the MySQL query and retrieve a single item into the php result array, or to retrieve the fields separately and concatenate them in the php code with stops or commas?
No other MySQL or php processing of the data is required: it is to be displayed just as it comes.
I've tried both approaches and can't detect any difference, but the dataset is currently comparatively small.
Thanks
Michael Hooker
If the result on the webpage is to be a concatenation of fields from a MySQL database, is it more efficient to use CONCAT in the MySQL query and retrieve a single item into the php result array, or to retrieve the fields separately and concatenate them in the php code with stops or commas?
No other MySQL or php processing of the data is required: it is to be displayed just as it comes.
I've tried both approaches and can't detect any difference, but the dataset is currently comparatively small.
Thanks
Michael Hooker