Instead of trying to build a single SQL statement into a
String, it is better to use a prepared statement. That way, you don't have to worry about special characters such as | and '
This will work as long as the String returned by myVector.toString() is short enough to fit into the database column.