Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Java を使用して Sql に '\n' を含む文字列を格納したいと考えています。しかし、問題は\n改行ではなくデータベースにあります。
たとえば、文字列が「abcd\nefgh」の場合、それが保存されるデータベース
abcd efgh
私はphpを使用してそのようなものを保存していたときに同じ問題を抱えていました.mysqli_escape_real_string()を使用してそれを克服しました
Javaでこの問題を解決するにはどうすればよいですか? 助けてください。