i wish to store an xml file in my mysql database xml and table xmldocs.
when i gave
INSERT INTO xmldocs VALUES (1000, LOAD_FILE('/root/NetBeansProjects/xmlProj/india.xml'), 'facts about India');
Error code 1048, SQL state 23000: Column 'doc_content' cannot be null
Line 2, column 1
I m sure the path is right.What should i do for the database to store the file?
when i gave
INSERT INTO xmldocs VALUES (1000, LOAD_FILE('/root/NetBeansProjects/xmlProj/india.xml'), 'facts about India');
Error code 1048, SQL state 23000: Column 'doc_content' cannot be null
Line 2, column 1
I m sure the path is right.What should i do for the database to store the file?