I am creating a small CMS for a school assignment and I tried this piece of SQL code in phpMyAdmin:
INSERT INTO subjects (
menu_name, position, visible
) VALUES (
'{Test item}', {4}, {1}
)
But it doesn’t works. It tells me:
#1064 – You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near ‘4}, {1} )’ at line 4.
Could someone please explain to me what I am doing wrong.
Why adding braces? This should work: