sql - please help me find mysql statement issue -


  INSERT person_data ('key', 'value', person_id), select 'aaa', 'bbb' Person_data; Can anyone please tell me what is the problem with the above statement? Because 'key' and 'value' are sensitive words? Any help?   

is a column name, which should be a keyword and it should not be placed in qoutes. Remove the last comma in the selection list too. Include 'AAA', 'BBB', 1 person to person_data;

  person_data (`key ', value, person_id);    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -