mysql - How to store HTML text in sql database using Java -



mysql - How to store HTML text in sql database using Java -

i trying store text generated java fx html editor sql database. recieving sql error.

i tried utilize varchar(1000), varchar(max) , text data types.

error:

java fx html editor

text generated editor

<html><head></head><body contenteditable="true"><p style="text-align: left;"><font face="'segoe ui'">line 1</font></p><p style="text-align: left;"><font face="'segoe ui'">line 2</font></p></body></html>

code:

public string insertdept(department dept){ string query = "insert " + table_name + "values(" +"'"+dept.getname()+"'," + "'"+dept.getemail()+"'" + ")"; homecoming query; }

i dont't know much mysql, @ <font face="'segoe ui'"> you've got ' delimiter causes problem. seek changing \' (if works in mysql)

java mysql sql sql-server javafx-2

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -