Avatar of joomla
joomla
Flag for Australia

asked on 

SQL Statement not working

SELECT itemid, CONCAT(  "insert into tblmembers (ID,", GROUP_CONCAT( b.fieldname ) ,  ") values (", itemid,  ",", GROUP_CONCAT(  "'", data_txt,  "'" ) ,  ");" )
FROM jos_sobi2_fields_data AS a
JOIN tablefields AS b ON (
a.`fieldid` = b.`fieldid`
)
GROUP BY itemid
ORDER BY itemid
LIMIT 0 , 30

Can anyone tell me why this statement doesn't create records in the table 'tblmembers'
tblmembers & jos_sobi2_fields_data & tablesfields all exist and are structured properly.

MySQL ServerProgramming Languages-Other

Avatar of undefined
Last Comment
joomla

8/22/2022 - Mon