I want to update a table's all columns values from another table, but it doesn't work.
I get this syntax error:
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM silinecek s WHERE frameworkcode IN ('AR','CF','FA','IR','KT','SER','SF','SR' at line 3
This is my query
UPDATE marc_subfield_structure
SET liblibrarian = s.liblibrarian, libopac = s.libopac,
repeatable = s.repeatable, mandatory = s.mandatory,
kohafield = s.kohafield, tab = s.tab,
authorised_value = s.authorised_value, authtypecode = s.authtypecode,
value_builder = s.value_builder, isurl = s.isurl, hidden = s.hidden,
seealso = s.seealso, link = s.link, defaultvalue = s.defaultvalue,
maxlength = s.maxlength
FROM
silinecek s
WHERE
frameworkcode IN ('AR','CF','FA','IR','KT','SER','SF','SR','VR')
AND tagfield='952';
What should I do?
marc_subfield_structure
that you want to update you get exactly 1 row fromsilinecek
.marc_subfield_structure
empty?